Trait bdk::database::BatchDatabase [−][src]
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.
Associated Types
type Batch: BatchOperations
[src]
type Batch: BatchOperations
[src]Container for the operations
Required methods
fn begin_batch(&self) -> Self::Batch
[src]
fn begin_batch(&self) -> Self::Batch
[src]Create a new batch container
Implementations on Foreign Types
Implementors
type Batch = Self