relstorage.adapters.oracle.txncontrol – TransactionControl implementations

TransactionControl implementations

class OracleTransactionControl(connmanager, poller, keep_history, Binary, twophase)[source]

Bases: relstorage.adapters.txncontrol.GenericTransactionControl

add_transaction(cursor, tid, username, description, extension, packed=False)[source]

Add a transaction

commit_phase1(store_connection, tid)[source]

Begin a commit. Returns the transaction name.

The transaction name must not be None.

This method should guarantee that commit_phase2() will succeed, meaning that if commit_phase2() would raise any error, the error should be raised in commit_phase1() instead.