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>;
}

Required Methods§

source

fn get(&self, key: &[u8], column: Column) -> DatabaseResult<Option<Value>>

source

fn put( &self, key: &[u8], column: Column, value: Value ) -> DatabaseResult<Option<Value>>

source

fn delete(&self, key: &[u8], column: Column) -> DatabaseResult<Option<Value>>

source

fn exists(&self, key: &[u8], column: Column) -> DatabaseResult<bool>

source

fn iter_all( &self, column: Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection ) -> BoxedIter<'_, KVItem>

Implementors§