package camltc

  1. Overview
  2. Docs
type t
type bdb = Bdb.bdb
type bdbcur = Bdb.bdbcur
val filename : t -> string
val create : ?mode:int -> ?lcnum:int -> ?ncnum:int -> string -> Bdb.opt list -> t Lwt.t
val get_bdb : t -> bdb
val transaction : t -> (bdb -> 'd Lwt.t) -> 'd Lwt.t
val with_cursor : bdb -> (bdb -> bdbcur -> 'a Lwt.t) -> 'a Lwt.t
val read : t -> (bdb -> 'b Lwt.t) -> 'b Lwt.t
val optimize : t -> unit Lwt.t
val defrag : ?step:int64 -> t -> int Lwt.t
val do_locked : t -> (unit -> 'a Lwt.t) -> 'a Lwt.t
val sync : t -> unit
val sync_nolock : t -> unit
val close : t -> unit Lwt.t
val reopen : t -> (unit -> unit Lwt.t) -> int -> unit Lwt.t