package leveldb

  1. Overview
  2. Docs
OCaml bindings for Google's LevelDB library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-leveldb-1.3.0.tar.gz
sha256=f88dd6054c3a53187535173caff2370a60ebe3e9233c6098882db74ea38a109a
sha512=bf867ffe9746ee189e7303d76c30bd2eb9bd202e2d170a3608d00458437dea8195b5cb3097e422c3014842bb6dccdda26c7f0e96da8e2b350b44cd70e5b12f7c

doc/leveldb/LevelDB/Batch/index.html

Module LevelDB.BatchSource

Batch operations applied atomically.

Sourceval make : unit -> writebatch

Initialize a batch operation.

Sourceval put : writebatch -> string -> string -> unit

put writebatch key value adds or replaces a binding.

Sourceval 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. *

  • raises Error

    if the offset, length pairs do not represent valid * substrings

Sourceval delete : writebatch -> string -> unit

delete writebatch key removes the binding for key, if present..

Sourceval 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.

Sourceval write : db -> ?sync:bool -> writebatch -> unit

Apply the batch operation atomically. *

  • parameter sync

    whether to write synchronously (default: false)

OCaml

Innovation. Community. Security.