Module Rocksdb.Batch
Batch processing RocksDB allows to batch operations through a dedicated batch object that must be fed to write. A batch object Batch.batch is a collection of operation to run on a database. (like Batch.put or delete).
val create : unit -> batchcreatewill create a batch job to be used to batch operation on the database.
val count : batch -> intcountnumber of operations in the batch object
val clear : batch -> unitclear operations from the batch object
val put : batch -> key:string -> value:string -> unitput batch key valuewill take abatchjob and stage the writing of thekeykey andvaluevalue in the batch job.
val write : t -> Options.Write_options.t -> batch -> (unit, error) Stdlib.resultwrite db write_options batchtakes adbhandle, somewrite_optionsand abatchjob and execute it on the database.
val simple_write_batch : t -> Options.Write_options.t -> (string * string) list -> (unit, error) Stdlib.resultA simple helper, will take a list of key_value and do a unique batch and write it to the database