relstorage.adapters.txncontrol
– TransactionControl implementations¶
TransactionControl implementations
- class AbstractTransactionControl(connmanager)[source]¶
Bases:
ABC
Abstract base class
- abort(store_connection, txn=None)[source]¶
Abort the commit. If txn is not None, phase 1 is also aborted.
The connection is rolled back quietly using
rollback_quietly()
and the boolean result of that function is returned.
- class GenericTransactionControl(connmanager, poller, keep_history, Binary)[source]¶
Bases:
AbstractTransactionControl
A
ITransactionControl
implementation that works for history-free and history-preserving storages that share a common syntax.