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>; }

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]

Container for the operations

Loading content...

Required methods

fn begin_batch(&self) -> Self::Batch[src]

Create a new batch container

fn commit_batch(&mut self, batch: Self::Batch) -> Result<(), Error>[src]

Consume and apply a batch of operations

Loading content...

Implementations on Foreign Types

impl BatchDatabase for Tree[src]

type Batch = Batch

Loading content...

Implementors

impl BatchDatabase for AnyDatabase[src]

type Batch = AnyBatch

impl BatchDatabase for MemoryDatabase[src]

type Batch = Self

Loading content...