pub trait KeyValueDbTraitTransactional: KeyValueDbAsAnyTrait {
    type TransactionType: KeyValueDbTransactionTrait<ValueType = Self::ValueType>;

    // Required method
    fn start_transaction(
        &self,
        immediate_write: bool
    ) -> Result<Self::TransactionType>;
}

Required Associated Types§

Required Methods§

source

fn start_transaction( &self, immediate_write: bool ) -> Result<Self::TransactionType>

Immediate_write indicates whether the transaction should acquire a write-lock immediately if any.

Implementors§

source§

impl KeyValueDbTraitTransactional for KvdbRocksdb

§

type TransactionType = KvdbRocksDbTransaction

source§

impl<ValueType: 'static + DbValueType + ValueRead + ValueReadImpl<<ValueType as ValueRead>::Kind>> KeyValueDbTraitTransactional for KvdbSqlite<ValueType>
where ValueType::Type: SqlBindableValue + BindValueAppendImpl<<ValueType::Type as SqlBindableValue>::Kind>,

§

type TransactionType = KvdbSqliteTransaction<ValueType>