RocksDBProviderFactory

Trait RocksDBProviderFactory 

Source
pub trait RocksDBProviderFactory {
    // Required methods
    fn rocksdb_provider(&self) -> RocksDBProvider;
    fn set_pending_rocksdb_batch(&self, batch: WriteBatchWithTransaction<true>);
}
Available on crate feature provider only.
Expand description

RocksDB provider factory.

This trait provides access to the RocksDB provider

Required Methods§

Source

fn rocksdb_provider(&self) -> RocksDBProvider

Returns the RocksDB provider.

Source

fn set_pending_rocksdb_batch(&self, batch: WriteBatchWithTransaction<true>)

Available on Unix and crate feature rocksdb only.

Adds a pending RocksDB batch to be committed when this provider is committed.

This allows deferring RocksDB commits to happen at the same time as MDBX and static file commits, ensuring atomicity across all storage backends.

Implementors§