package cryptodbm

  1. Overview
  2. Docs
type dbfile = {
  1. root : string;
  2. files : string list;
}
val get_root : dbfile -> string
type dbm = Dbm.t
val catcher : ('a -> 'b) -> 'a -> 'b
val open_dbm : dbfile -> [< `Append | `Read | `Write ] -> perm:int -> Dbm.t
val close : Dbm.t -> unit
val find : Dbm.t -> string -> string
val replace : Dbm.t -> string -> string -> unit
val remove : Dbm.t -> string -> unit
val add : Dbm.t -> string -> string -> unit
val iterkey : (string -> 'a) -> Dbm.t -> unit
val iter : (string -> string -> 'a) -> Dbm.t -> unit
type db_mode =
  1. | Single_Mode
  2. | NDBM_Mode
val mode : db_mode
type file_operations = {
  1. mk_file : string -> dbfile;
  2. exists : dbfile -> bool;
  3. delete : dbfile -> unit;
  4. get_perm : dbfile -> int;
  5. copy : dbfile -> string -> unit;
  6. is_readable : dbfile -> bool;
  7. is_appendable : dbfile -> bool;
}
val file_ops : file_operations
val mk_file : string -> dbfile
val exists : dbfile -> bool
val delete : dbfile -> unit
val get_perm : dbfile -> int
val copy : dbfile -> string -> unit
val is_readable : dbfile -> bool
val is_appendable : dbfile -> bool
OCaml

Innovation. Community. Security.