Module Lmdb.Env
Collection of maps stored in a single memory-mapped file.
module Flags = Mdb.EnvFlagsval create : _ perm -> ?max_readers:int -> ?map_size:int -> ?max_maps:int -> ?flags:Flags.t -> ?mode:int -> string -> tcreate perm pathcreates an environment withRoorRwpermissions with data and lock files in the already existing directorypath. If no separate directory is desired,Flags.no_subdircan be passed.The returned handle is not garbage collected and should be closed explicitely to free locks and prevent corruption on async environments.
- parameter map_size
Size of the memory map. Limited by the virtual address space.
- parameter max_readers
Maximum number of threads/reader slots.
- parameter max_maps
Maximum number of named maps.
- parameter mode
The UNIX permissions to set on created files and semaphores. Default is
0o644.
val sync : ?force:bool -> t -> unitval close : t -> unitval copy : ?compact:bool -> t -> string -> unitval copyfd : ?compact:bool -> t -> Unix.file_descr -> unitval set_flags : t -> Flags.t -> bool -> unitval flags : t -> Flags.tval set_map_size : t -> int -> unitval path : t -> stringval fd : t -> Unix.file_descrval stat : t -> Mdb.statval info : t -> Mdb.envinfoval max_readers : t -> intval max_keysize : t -> intval reader_list : t -> string listval reader_check : t -> int