package orocksdb

  1. Overview
  2. Docs
type t
module ReadOptions : sig ... end
module WriteOptions : sig ... end
module TransactionOptions : sig ... end
module Snapshot : sig ... end
val txnbegin : ?wopts:WriteOptions.t -> ?txnopts:TransactionOptions.t -> t -> t
val txnbegin_no_gc : ?wopts:WriteOptions.t -> ?txnopts:TransactionOptions.t -> t -> t
val commit : t -> unit
val rollback : t -> unit
val destroy : t -> unit
val with_t : t -> (t -> unit) -> unit
val get : ?pos:int -> ?len:int -> ?opts:ReadOptions.t -> t -> Rocks_intf.bigarray -> Rocks_intf.bigarray option
val get_string : ?pos:int -> ?len:int -> ?opts:ReadOptions.t -> t -> string -> string option
val put : ?key_pos:int -> ?key_len:int -> ?value_pos:int -> ?value_len:int -> ?opts:WriteOptions.t -> t -> Rocks_intf.bigarray -> Rocks_intf.bigarray -> unit
val put_string : ?key_pos:int -> ?key_len:int -> ?value_pos:int -> ?value_len:int -> ?opts:WriteOptions.t -> t -> string -> string -> unit
val delete : ?pos:int -> ?len:int -> ?opts:WriteOptions.t -> t -> Rocks_intf.bigarray -> unit
val delete_string : ?pos:int -> ?len:int -> ?opts:WriteOptions.t -> t -> string -> unit
val get_snapshot : t -> Snapshot.t
val free_snapshot : Snapshot.t -> unit
val create_iterator : ?opts:ReadOptions.t -> t -> Iterator.t
val with_iterator : ?opts:ReadOptions.t -> t -> f:(Iterator.t -> 'a) -> 'a
OCaml

Innovation. Community. Security.