package dokeysto

  1. Overview
  2. Docs
module Ht = Hashtbl
type db = {
  1. data_fn : Common.filename;
  2. index_fn : Common.filename;
  3. data : Unix.file_descr;
  4. index : (string, Common.position) Ht.t;
}
val create : Common.filename -> db
val open_rw : Common.filename -> db
val open_ro : Common.filename -> db
val dummy : unit -> db
val close_simple : db -> unit
val close_sync_index : db -> unit
val sync : db -> unit
val destroy : db -> unit
val mem : db -> string -> bool
val add : db -> string -> string -> unit
val replace : db -> string -> string -> unit
val remove : db -> string -> unit
val raw_read : db -> Common.position -> string
val find : db -> string -> string
val iter : (string -> string -> unit) -> db -> unit
val fold : (string -> string -> 'a -> 'b) -> db -> 'c -> 'd
OCaml

Innovation. Community. Security.