Trait ckb_rocksdb::ops::Delete

source ·
pub trait Delete<W> {
    // Required method
    fn delete_full<K>(&self, key: K, writeopts: Option<&W>) -> Result<(), Error>
       where K: AsRef<[u8]>;

    // Provided methods
    fn delete<K>(&self, key: K) -> Result<(), Error>
       where K: AsRef<[u8]> { ... }
    fn delete_opt<K>(&self, key: K, writeopts: &W) -> Result<(), Error>
       where K: AsRef<[u8]> { ... }
}

Required Methods§

source

fn delete_full<K>(&self, key: K, writeopts: Option<&W>) -> Result<(), Error>where K: AsRef<[u8]>,

Provided Methods§

source

fn delete<K>(&self, key: K) -> Result<(), Error>where K: AsRef<[u8]>,

Remove the database entry for key.

Returns an error if the key was not found.

source

fn delete_opt<K>(&self, key: K, writeopts: &W) -> Result<(), Error>where K: AsRef<[u8]>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, W> Delete<W> for Twhere T: DeleteCF<W>,