Trait ckb_index::KVTxn[][src]

pub trait KVTxn<'r>: KVReader<'r> {
    fn insert(&mut self, key: Vec<u8>, value: Vec<u8>) -> Option<Vec<u8>>;
fn remove_maybe(&mut self, key: Vec<u8>, must_exists: bool) -> Option<bool>;
fn commit(self); fn put_pair(&mut self, (key, value): (Vec<u8>, Vec<u8>)) -> Option<Vec<u8>> { ... }
fn remove_ok(&mut self, key: Vec<u8>) -> Option<bool> { ... }
fn remove(&mut self, key: Vec<u8>) -> Option<bool> { ... } }

Required methods

Provided methods

Implementors