Expand description
Optional transactions layer for the Rust link-cli.
Mirrors the C# TransactionsDecorator in
csharp/Foundation.Data.Doublets.Cli.Library/TransactionsDecorator.cs.
The decorator wraps a NamedTypesDecorator and records every
create / update / delete as a reversible Transition in a
sidecar doublets log store. Supports explicit transactions, sync
commits, three retention policies, and crash recovery (R1-R7, R10).
Optional — when not opted in, the bare NamedTypesDecorator
behaves identically (R8, R9, R17).
Structs§
- Doublet
Link - A single doublet link state captured by a transition (mirror of the
C#
Platform.Data.Doublets.Link<uint>). - Transaction
Handle - Snapshot of an open transaction (returned by
TransactionsDecorator::begin_transaction). - Transactions
Decorator - The transactions decorator wraps a
NamedTypesDecoratorand records every write as a reversibleTransitioninlog_store. - Transition
- Reversible write captured by the transactions layer. Holds both
beforeandafterlink states so the operation can be undone or replayed.
Enums§
- Commit
Mode - Sync flushes data-store side-effects before
commitreturns. - LogRetention
Policy - Retention policy for the transitions log.
- Transition
Kind - The kind of write operation recorded by a
Transition.