class documentation

class SessionTransactionOrigin(Enum): (source)

View In Hierarchy

indicates the origin of a :class:`.SessionTransaction`. This enumeration is present on the :attr:`.SessionTransaction.origin` attribute of any :class:`.SessionTransaction` object. .. versionadded:: 2.0

Constant AUTOBEGIN transaction were started by autobegin
Constant BEGIN transaction were started by calling :meth:`_orm.Session.begin`
Constant BEGIN_NESTED tranaction were started by :meth:`_orm.Session.begin_nested`
Constant SUBTRANSACTION transaction is an internal "subtransaction"
AUTOBEGIN: int = (source)

transaction were started by autobegin

Value
0

transaction were started by calling :meth:`_orm.Session.begin`

Value
1
BEGIN_NESTED: int = (source)

tranaction were started by :meth:`_orm.Session.begin_nested`

Value
2
SUBTRANSACTION: int = (source)

transaction is an internal "subtransaction"

Value
3