Crate txn

Crate txn 

Source
Expand description

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

For other async runtime, async-txn

Modules§

error
Error types for the [txn] crate. Errors

Structs§

BTreeCm
A Cm conflict manager implementation that based on the BTreeSet.
Entry
An entry can be persisted to the database.
EntryRef
The reference of the Entry.
EntryValue
A entry value
HashCm
A Cm conflict manager implementation that based on the Hash.
HashCmOptions
Options for the HashCm.
Marker
A marker used to mark the keys that are read.
OneOrMore
A tiny vec which can inline 1 element on stack.
Rtm
Rtm is a read-only transaction manager.
Tm
A multi-writer multi-reader MVCC, ACID, Serializable Snapshot Isolation transaction manager.
Wtm
Wtm is used to perform writes to the database. It is created by calling Tm::write.

Enums§

EntryData
The data of the Entry.
EntryDataRef
The reference of the EntryData.

Traits§

Cm
The conflict manager that can be used to manage the conflicts in a transaction.
CmComparable
An optimized version of the Cm trait that if your conflict manager is depend on the order.
CmComparableRange
An optimized version of the CmRange trait that if your conflict manager is depend on the order.
CmEquivalent
An optimized version of the Cm trait that if your conflict manager is depend on hash.
CmEquivalentRange
An optimized version of the CmRange trait that if your conflict manager is depend on hash.
CmIter
A extended trait of the Cm trait that can be used to manage the iterator of keys.
CmRange
A extended trait of the Cm trait that can be used to manage the range of keys.
Pwm
A pending writes manager that can be used to store pending writes in a transaction.
PwmComparable
An optimized version of the Pwm trait that if your pending writes manager is depend on the order.
PwmComparableRange
An trait that can be used to get a range over the pending writes.
PwmEquivalent
An optimized version of the Pwm trait that if your pending writes manager is depend on hash.
PwmEquivalentRange
An trait that can be used to get a range over the pending writes.
PwmRange
An trait that can be used to get a range over the pending writes.

Type Aliases§

BTreePwm
A type alias for Pwm that based on the BTreeMap.
IndexMapPwm
A type alias for Pwm that based on the IndexMap.