package dokeysto
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Db.RWSource
create fn create in read-write mode the persistent hashtbl whose data are stored in file fn and whose index is stored in fn ^ ".idx".
open_existing fn open in read-write mode the persistent hashtbl whose data are stored in file fn and whose index is stored in fn ^ ".idx".
destroy db rm data and metadata files of db and clear db's index hashtbl.
replace db k v replace the current binding for k in db by a binding from k to v. Cf. Hashtbl.replace for details.
remove tbl k remove the current binding for k in db. Cf. Hashtbl.replace for details.
find db k get the current binding of k in db or raise Not_found.
raw_read db pos read from the data file of db the string at position pos. WARNING: regular users should not need to call this function.
iter f db apply f to all key-value pairs in db. Cf. Hashtbl.iter for details.