Trait Batch

Source
pub trait Batch {
    // Required method
    fn write(
        &self,
        options: &WriteOptions,
        batch: &WriteBatch,
    ) -> Result<(), Error>;
}
Expand description

Batch access to the database

Required Methods§

Source

fn write(&self, options: &WriteOptions, batch: &WriteBatch) -> Result<(), Error>

Write a batch to the database, ensuring success for all items or an error

Implementors§