Trait bdk::database::BatchDatabase
source · [−]pub trait BatchDatabase: Database {
type Batch: BatchOperations;
fn begin_batch(&self) -> Self::Batch;
fn commit_batch(&mut self, batch: Self::Batch) -> Result<(), Error>;
}
Expand description
Trait for a database that supports batch operations
This trait defines the methods to start and apply a batch of operations.
Required Associated Types
sourcetype Batch: BatchOperations
type Batch: BatchOperations
Container for the operations
Required Methods
sourcefn begin_batch(&self) -> Self::Batch
fn begin_batch(&self) -> Self::Batch
Create a new batch container