Skip to main content

KeyValueDbTraitTransactional

Trait KeyValueDbTraitTransactional 

Source
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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl KeyValueDbTraitTransactional for KvdbRocksdb

Source§

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>,

Source§

type TransactionType = KvdbSqliteTransaction<ValueType>

Source§

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

Source§

type TransactionType = KvdbSqliteShardedTransaction<ValueType>