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 types for the [txn] crate. Errors

Structs§

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

Enums§

Traits§

  • The conflict manager that can be used to manage the conflicts in a transaction.
  • An optimized version of the Cm trait that if your conflict manager is depend on the order.
  • An optimized version of the CmRange trait that if your conflict manager is depend on the order.
  • An optimized version of the Cm trait that if your conflict manager is depend on hash.
  • An optimized version of the CmRange trait that if your conflict manager is depend on hash.
  • A extended trait of the Cm trait that can be used to manage the iterator of keys.
  • A extended trait of the Cm trait that can be used to manage the range of keys.
  • A pending writes manager that can be used to store pending writes in a transaction.
  • An optimized version of the Pwm trait that if your pending writes manager is depend on the order.
  • An trait that can be used to get a range over the pending writes.
  • An optimized version of the Pwm trait that if your pending writes manager is depend on hash.
  • An trait that can be used to get a range over the pending writes.
  • An trait that can be used to get a range over the pending writes.

Type Aliases§