Skip to main content

Module txn

Module txn 

Source

Structs§

PreparedUnit
Everything UnitOfWork::prepare worked out, carried from there to UnitOfWork::journal and on to apply_prepared. Owns its lines, so it can be held across the release of whatever lock guarded the tables it was prepared against — but only if that release keeps the caller the sole writer, since the _seq numbers inside it are already burned and a write that slipped in between would land ahead of them in the log.
UnitOfWork
A batch of writes across several tables that lands whole or not at all (ADR 0012). Operations are collected with put/patch/delete and nothing touches a table until commit(), which runs the six steps documented in docs/architecture.md: resolve, barrier, prepare, journal, write, cleanup. &mut Table borrows held for the call are the barrier — no separate write queue to drain, since nothing else can hold those tables mutably at the same time.
UnitOfWorkResult

Enums§

StagedView
What a key would read as once this unit lands, computed against table’s committed state plus the ops staged so far for it (ADR-3h3r).
TxnError

Constants§

JOURNAL_FILE