package orocksdb

  1. Overview
  2. Docs
exception OperationOnInvalidObject
type bigarray = Rocks_intf.bigarray
module Views : sig ... end
module WriteBatch : sig ... end
module Version : sig ... end
module Options : sig ... end
module ReadOptions : sig ... end
module WriteOptions : sig ... end
module FlushOptions : sig ... end
module Cache : sig ... end
module BlockBasedTableOptions : sig ... end
module Snapshot : sig ... end
module TransactionDbOptions : sig ... end
type t
val get_pointer : t -> unit Ctypes.ptr
val open_db : ?opts:Options.t -> string -> t
val open_db_for_read_only : ?opts:Options.t -> string -> bool -> t
val open_transactiondb : ?opts:Options.t -> ?txnopts:TransactionDbOptions.t -> string -> t
val with_db : ?opts:Options.t -> string -> f:(t -> 'a) -> 'a
val close : t -> unit
val get : ?pos:int -> ?len:int -> ?opts:ReadOptions.t -> t -> Rocks_intf.bigarray -> Rocks_intf.bigarray option
val get_string : ?pos:int -> ?len:int -> ?opts:ReadOptions.t -> t -> string -> string option
val put : ?key_pos:int -> ?key_len:int -> ?value_pos:int -> ?value_len:int -> ?opts:WriteOptions.t -> t -> Rocks_intf.bigarray -> Rocks_intf.bigarray -> unit
val put_string : ?key_pos:int -> ?key_len:int -> ?value_pos:int -> ?value_len:int -> ?opts:WriteOptions.t -> t -> string -> string -> unit
val delete : ?pos:int -> ?len:int -> ?opts:WriteOptions.t -> t -> Rocks_intf.bigarray -> unit
val delete_string : ?pos:int -> ?len:int -> ?opts:WriteOptions.t -> t -> string -> unit
val write : ?opts:WriteOptions.t -> t -> WriteBatch.t -> unit
val flush : ?opts:FlushOptions.t -> t -> unit
val create_snapshot : t -> Snapshot.t
val release_snapshot : t -> Snapshot.t -> unit
val checkpoint_create : t -> string -> int -> unit
val property_value : t -> string -> string option
module Iterator : sig ... end
module Transaction : sig ... end