package mirage-btrees

  1. Overview
  2. Docs
type pointer
type allocator
type store
type error
type 'a io
type node
type key
type value
type t = {
  1. allocator : allocator;
  2. store : store;
  3. mutable root : node;
  4. mutable rootAddress : pointer;
  5. minDegree : int;
}
val create : allocator -> store -> int -> [ `Error of error | `Ok of t ] io
val connect : allocator -> store -> int -> pointer -> [ `Error of error | `Ok of t ] io
val insert : t -> key -> value -> [ `Error of error | `Ok of unit ] io
val find : t -> node -> key -> [ `Error of error | `Ok of value option ] io