Trait fuel_core::state::KeyValueStore
source · [−]pub trait KeyValueStore {
fn get(&self, key: &[u8], column: ColumnId) -> Result<Option<Vec<u8>>>;
fn put(
&self,
key: Vec<u8>,
column: ColumnId,
value: Vec<u8>
) -> Result<Option<Vec<u8>>>;
fn delete(&self, key: &[u8], column: ColumnId) -> Result<Option<Vec<u8>>>;
fn exists(&self, key: &[u8], column: ColumnId) -> Result<bool>;
fn iter_all(
&self,
column: ColumnId,
prefix: Option<Vec<u8>>,
start: Option<Vec<u8>>,
direction: IterDirection
) -> Box<dyn Iterator<Item = (Vec<u8>, Vec<u8>)>>;
}