TransactionState class
Describes whether the a connection is participating in a transaction, and if the transaction has failed.
Constructors
- TransactionState(String _name)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- begun → const TransactionState
- The current session has an open transaction.
- error → const TransactionState
- A transaction was opened on the current session, but an error occurred. In this state all futher commands will be ignored until a rollback is issued.
- none → const TransactionState
- The current session has not opened a transaction.
- unknown → const TransactionState
- Directly after sending a query the transaction state is unknown, as the query may change the transaction state. Wait until the query is completed to query the transaction state.