Trait keyvalint::WriteBatch

source ·
pub trait WriteBatch {
    // Required methods
    fn put(&mut self, key: &[u8], value: &[u8]);
    fn del(&mut self, key: &[u8]);
}
Expand description

A write batch aggregates writes to be written together.

Required Methods§

source

fn put(&mut self, key: &[u8], value: &[u8])

Append the key-value pair to the write batch.

source

fn del(&mut self, key: &[u8])

Append a tombstone to the write batch.

Implementors§