Expand description
Process-level ACID primitives for MDQL.
Three layers:
atomic_write— crash-safe single-file write via temp+renametable_lock— exclusive per-table lock via flockmulti_file_txn— write-ahead journal for multi-file operations
Structs§
- Journal
- Journal
Entry - Table
Lock - RAII guard for an exclusive table lock.
- Table
Transaction
Constants§
Functions§
- atomic_
write - Write content to path atomically via temp file + rename.
- recover_
journal - If a journal exists from a crashed transaction, roll back. Returns true if recovery was performed.
- with_
multi_ file_ txn - Context manager equivalent — runs a closure within a transaction. On success, commits. On error, rolls back and re-raises.