Crate mwmr

Crate mwmr 

Source
Expand description

A generic optimistic transaction manger, which is ACID, concurrent with SSI (Serializable Snapshot Isolation).

For tokio runtime, please see tokio-mwmr

For other async runtime, async-mwmr

Modules§

error
Error types for the [mwmr] crate.

Structs§

Entry
An entry can be persisted to the database.
EntryRef
The reference of the Entry.
EntryValue
A entry value
IteratorOptions
Used to set options when iterating over key-value stores.
KeyRef
A reference to a key.
KeysOptions
Used to set options when iterating over key-value stores.
OneOrMore
A tiny vec which can inline 1 element on stack.
Options
Options for the TransactionDB.
ReadTransaction
ReadTransaction is a read-only transaction.
TransactionDB
A multi-writer multi-reader MVCC, ACID, Serializable Snapshot Isolation transaction manager.
WriteTransaction
WriteTransaction is used to perform writes to the database. It is created by calling TransactionDB::write.

Enums§

EntryData
The data of the Entry.
EntryDataRef
The reference of the EntryData.
Item
An item that is either prefetched or fetched from the database.

Traits§

Database
An abstraction of database which can be managed by the [TransactionDB].
PendingManager
A pending writes manager that can be used to store pending writes in a transaction.

Type Aliases§

BTreeMapManager
A type alias for PendingManager that based on the BTreeMap.
IndexMapManager
A type alias for PendingManager that based on the IndexMap.