pub trait Batch<K, V>: BatchBuilder {
    fn batch_insert(
        &self,
        batch: &mut Self::Batch,
        key: &K,
        value: &V
    ) -> Result<(), Self::Error>; fn batch_delete(
        &self,
        batch: &mut Self::Batch,
        key: &K
    ) -> Result<(), Self::Error>; }
Expand description

Batch<K, V> trait extends the StorageBackend with batch operations for the (key: K, value: V) pair; therefore, it should be explicitly implemented for the corresponding StorageBackend.

Required Methods

Add Insert batch operation for the provided key value pair into the Batch memory buffer.

Add Delete batch operation for the provided key value pair into the Batch memory buffer.

Implementors