pub trait DbXxxObjectSafe<KT: DbMapKeyType>: DbXxxBase {
    fn get_kt(&mut self, key: &KT) -> Result<Option<Vec<u8>>>;
    fn put_kt(&mut self, key: &KT, value: &[u8]) -> Result<()>;
    fn del_kt(&mut self, key: &KT) -> Result<Option<Vec<u8>>>;
}
Expand description

generic key-value map store interface. the key type is KT. this is only object safe.

Required Methods

returns the value corresponding to the key. this key is store raw data and type &[u8].

inserts a key-value pair into the db. this key is store raw data and type &[u8].

removes a key from the db. this key is store raw data and type &[u8].

Implementors