Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type error =
| NoSuchFileOrDir
| IOError
| EnvironmentLocked
| OutOfMemory
| PermissionDenied
| InvalidArgument
| NoSpaceLeftOnDevice
| KeyExist
| KeyNotFound
| PageNotFound
| Corrupted
| Panic
| VersionMismatch
| InvalidFile
| MapFull
| DbsFull
| ReadersFull
| TLSFull
| TxnFull
| CursorFull
| PageFull
| MapResized
| Incompatible
| BadRslot
| BadTxn
| BadValSize
| BadDbi
| TxnProblem
val string_of_error : error -> string
val pp_error : Stdlib.Format.formatter -> error -> unit
val to_msg :
('a, error) Rresult.result ->
('a, [> Rresult.R.msg ]) Rresult.result
val version : unit -> version
val opendir :
?maxreaders:int ->
?maxdbs:int ->
?mapsize:int64 ->
?flags:flag_env list ->
string ->
Unix.file_perm ->
(t, error) Rresult.result
val closedir : t -> unit
val copy : ?compact:bool -> t -> string -> (unit, error) Rresult.result
val copyfd :
?compact:bool ->
t ->
Unix.file_descr ->
(unit, error) Rresult.result
val sync : ?force:bool -> t -> (unit, error) Rresult.result
val set_flags : t -> flag_env list -> (unit, error) Rresult.result
val clear_flags : t -> flag_env list -> (unit, error) Rresult.result
val get_path : t -> string
val get_fd : t -> Unix.file_descr
val get_maxreaders : t -> int
val get_maxkeysize : t -> int
val set_mapsize : t -> int64 -> (unit, error) Rresult.result
val get_txn_id : _ txn -> int
val commit_txn : _ txn -> (unit, error) Rresult.result
val abort_txn : _ txn -> unit
val renew_ro_txn : ro txn -> (unit, error) Rresult.result
val opendb :
?flags:flag_open list ->
?name:string ->
_ txn ->
(db, error) Rresult.result
val db_stat : _ txn -> db -> (stat, error) Rresult.result
val db_flags : _ txn -> db -> (flag_open list, error) Rresult.result
val db_drop : _ txn -> db -> (unit, error) Rresult.result
val with_ro_db :
?nosync:bool ->
?nometasync:bool ->
?parent:_ txn ->
?flags:flag_open list ->
?name:string ->
t ->
f:(ro txn -> db -> ('a, error) Rresult.result) ->
('a, error) Rresult.result
val get : _ txn -> db -> string -> (buffer, error) Rresult.result
val mem : _ txn -> db -> string -> (bool, error) Rresult.result
val del_string :
?data:string ->
rw txn ->
db ->
string ->
(unit, error) Rresult.result
val opencursor : 'a txn -> db -> ('a cursor, error) Rresult.result
val cursor_close : _ cursor -> unit
val cursor_first : _ cursor -> (unit, error) Rresult.result
val cursor_last : _ cursor -> (unit, error) Rresult.result
val cursor_prev : _ cursor -> (unit, error) Rresult.result
val cursor_next : _ cursor -> (unit, error) Rresult.result
val cursor_at : _ cursor -> string -> (unit, error) Rresult.result
val cursor_get : _ cursor -> (buffer * buffer, error) Rresult.result
val cursor_fold_left :
f:('a -> (buffer * buffer) -> ('a, error) Rresult.result) ->
init:'a ->
_ cursor ->
('a, error) Rresult.result
val cursor_iter :
f:((buffer * buffer) -> (unit, error) Rresult.result) ->
_ cursor ->
(unit, error) Rresult.result
val with_cursor :
'a txn ->
db ->
f:('a cursor -> ('b, error) Rresult.result) ->
('b, error) Rresult.result
val cursor_put_string :
?flags:flag_put list ->
rw cursor ->
string ->
string ->
(unit, error) Rresult.result
val cursor_del :
?flags:flag_put list ->
rw cursor ->
(unit, error) Rresult.result
val cursor_count : _ cursor -> (int, error) Rresult.result