Trait fuel_core::state::KeyValueStore
source · pub trait KeyValueStore {
// Required methods
fn get(&self, key: &[u8], column: Column) -> DatabaseResult<Option<Value>>;
fn put(
&self,
key: &[u8],
column: Column,
value: Value
) -> DatabaseResult<Option<Value>>;
fn delete(
&self,
key: &[u8],
column: Column
) -> DatabaseResult<Option<Value>>;
fn exists(&self, key: &[u8], column: Column) -> DatabaseResult<bool>;
fn iter_all(
&self,
column: Column,
prefix: Option<&[u8]>,
start: Option<&[u8]>,
direction: IterDirection
) -> BoxedIter<'_, KVItem>;
}