Struct lmdb::RoTransaction

source ·
pub struct RoTransaction<'env> { /* private fields */ }
Expand description

An LMDB read-only transaction.

Implementations§

Resets the read-only transaction.

Abort the transaction like Transaction::abort, but keep the transaction handle. InactiveTransaction::renew may reuse the handle. This saves allocation overhead if the process will start a new read-only transaction soon, and also locking overhead if EnvironmentFlags::NO_TLS is in use. The reader table lock is released, but the table slot stays tied to its thread or transaction. Reader locks generally don’t interfere with writers, but they keep old versions of database pages allocated. Thus they prevent the old pages from being reused when writers commit new data, and so under heavy load the database size may grow much more rapidly than otherwise.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Returns a raw pointer to the underlying LMDB transaction. Read more
Commits the transaction. Read more
Aborts the transaction. Read more
Opens a database in the transaction. Read more
Gets an item from a database. Read more
Open a new read-only cursor on the given database.
Gets the option flags for the given database in the transaction.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.