Class TransactionWrites
Whether a transaction has written anything yet. Inside a transaction that has written nothing, what its
connection reads is committed state, so a shared instance may keep it (the lazy-load rule, owner decision
2026-09-17); once the transaction has written, what it reads may be its own uncommitted work, and a shared
instance keeps nothing of it (owner decision 2026-09-15). redb writes in few known places, which mark
here: every non-query command and every bulk operation (), and the provider
methods that write behind a query (soft delete, purge). Kept per transaction object, weakly.
public static class TransactionWrites
Inheritance
Methods
Any(IRedbContext)
Whether the context's transaction has written anything; false outside a transaction.
public static bool Any(IRedbContext context)
Mark(IRedbContext)
The context's transaction has written.
public static void Mark(IRedbContext context)
ReadsCommitted(IRedbContext)
Whether a load made now on the context's connection reads committed state: outside a transaction, or
public static bool ReadsCommitted(IRedbContext context)