pub trait BatchBuilder: StorageBackend {
    type Batch: Default + Send + Sized;

    fn batch_commit(
        &self,
        batch: Self::Batch,
        durability: bool
    ) -> Result<(), Self::Error>; fn batch_begin() -> Self::Batch { ... } }
Expand description

BatchBuilder trait extends the StorageBackend with batch builder functionality; therefore it should be explicitly implemented for the corresponding StorageBackend.

Required Associated Types

Type that acts like a memory buffer which queue all the write operations.

Required Methods

Takes ownership of a batch object in order to commit it to the backend. Durability argument determines if the batch needs to be logged into a write ahead log or not.

Provided Methods

Creates and returns the constraint Batch object.

Implementors