module Main_Memory_Btree_Functor: Main_Memory_Btree_Functor_Sig
type
btree_handle
type
btree_key = Key.t
type
btree_value = Value.t
type
btree_cursor
val empty_tree : unit -> btree_handle
val btree_get_set : btree_handle ->
btree_key ->
(btree_key *
btree_value)
option
val btree_get_set_range : btree_handle ->
btree_key ->
(btree_key *
btree_value)
option
val btree_get_both : btree_handle ->
btree_key *
btree_value ->
(btree_key *
btree_value)
option
val btree_get_both_range : btree_handle ->
btree_key *
btree_value ->
(btree_key *
btree_value)
option
val btree_get_all : btree_handle ->
btree_key ->
btree_value
Cursor.cursor
val btree_put : btree_handle ->
btree_key ->
btree_value -> unit
val btree_delete : btree_handle ->
btree_key ->
btree_value -> unit
val btree_delete_all : btree_handle ->
btree_key -> unit
val btree_sync : btree_handle -> unit
val btree_close : btree_handle -> unit
val btree_get : btree_handle ->
btree_key ->
btree_value option
val btree_open : string ->
int ->
bool -> btree_handle
type
cursor_direction =
val btree_cursor_open : btree_handle ->
btree_cursor
val btree_cursor_to_cursor : btree_cursor ->
cursor_direction ->
(btree_key *
btree_value)
Cursor.cursor
val btree_cursor_put : btree_cursor ->
btree_key ->
btree_value -> unit
val btree_cursor_get_first : btree_cursor ->
(btree_key *
btree_value)
option
val btree_cursor_get_last : btree_cursor ->
(btree_key *
btree_value)
option
val btree_cursor_get_next : btree_cursor ->
(btree_key *
btree_value)
option
val btree_cursor_get_prev : btree_cursor ->
(btree_key *
btree_value)
option
val btree_cursor_get_set : btree_cursor ->
btree_key ->
(btree_key *
btree_value)
option
val btree_cursor_get_both : btree_cursor ->
btree_key *
btree_value ->
(btree_key *
btree_value)
option
val btree_cursor_get_set_range : btree_cursor ->
btree_key ->
(btree_key *
btree_value)
option
val btree_cursor_get_both_range : btree_cursor ->
btree_key *
btree_value ->
(btree_key *
btree_value)
option
val btree_cursor_del : btree_cursor -> unit
val btree_cursor_close : btree_cursor -> unit