ExRocket (ex_rocket v0.5.0)
View SourceExRocket — an Elixir NIF wrapper around RocksDB, powered by the maintained
rust-rocksdb crate.
Summary
Types
@opaque db()
@opaque iterator()
@type iterator_status() :: :more | :end_of_iterator
@type iterator_take_options() :: %{ :max_entries => pos_integer(), optional(:max_bytes) => pos_integer() }
@opaque snapshot()
Functions
@spec iterator_take(iterator(), iterator_take_options()) :: {:ok, [{binary(), binary()}], iterator_status()} | {:error, term()}
@spec write_batch(db(), [batch_operation()]) :: {:ok, non_neg_integer()} | {:error, term()}
@spec write_batch(db(), [batch_operation()], write_options()) :: {:ok, non_neg_integer()} | {:error, term()}