Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Batch operations applied atomically.
val make : unit -> writebatch
Initialize a batch operation.
val put : writebatch -> string -> string -> unit
put writebatch key value
adds or replaces a binding.
val put_substring :
writebatch ->
string ->
int ->
int ->
string ->
int ->
int ->
unit
put_substring writebatch key off1 len1 value off2 len2
adds or * replaces a binding for the substrings of key
and value
delimited by * the given offsets and lengths. *
val delete : writebatch -> string -> unit
delete writebatch key
removes the binding for key
, if present..
val delete_substring : writebatch -> string -> int -> int -> unit
delete writebatch s off len
removes (if present) the binding for the * substring of s
delimited by the offset off
and the length len
.
val write : db -> ?sync:bool -> writebatch -> unit
Apply the batch operation atomically. *