package dokeysto

  1. Overview
  2. Docs

Module Dokeysto.InternalSource

Sourcemodule Ht = Hashtbl
Sourcetype db = {
  1. data_fn : Common.filename;
  2. index_fn : Common.filename;
  3. data : Unix.file_descr;
  4. index : (string, Common.position) Ht.t;
}
Sourceval create : Common.filename -> db
Sourceval open_rw : Common.filename -> db
Sourceval open_ro : Common.filename -> db
Sourceval dummy : unit -> db
Sourceval close_simple : db -> unit
Sourceval close_sync_index : db -> unit
Sourceval sync : db -> unit
Sourceval destroy : db -> unit
Sourceval mem : db -> string -> bool
Sourceval add : db -> string -> string -> unit
Sourceval replace : db -> string -> string -> unit
Sourceval remove : db -> string -> unit
Sourceval really_read : Unix.file_descr -> bytes -> int -> int -> int
Sourceval raw_read : db -> Common.position -> string
Sourceval find : db -> string -> string
Sourceval iter : (string -> string -> unit) -> db -> unit
Sourceval fold : (string -> string -> 'a -> 'a) -> db -> 'a -> 'a