Trait fedimint_core::db::IDatabaseTransaction
source · pub trait IDatabaseTransaction: MaybeSend + IDatabaseTransactionOps {
// Required methods
fn commit_tx<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn prefix_len(&self) -> usize;
}
Expand description
Fedimint database transaction
See IDatabase
for more info.
Required Methods§
sourcefn commit_tx<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn commit_tx<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Commit the transaction
sourcefn prefix_len(&self) -> usize
fn prefix_len(&self) -> usize
The prefix len of this database instance