pub trait Batch {
// Required method
fn write(
&self,
options: &WriteOptions,
batch: &WriteBatch,
) -> Result<(), Error>;
}
Expand description
Batch access to the database
Required Methods§
Sourcefn write(&self, options: &WriteOptions, batch: &WriteBatch) -> Result<(), Error>
fn write(&self, options: &WriteOptions, batch: &WriteBatch) -> Result<(), Error>
Write a batch to the database, ensuring success for all items or an error