TransactionClient<T> class

Constructors

TransactionClient(Engine engine, T factory(TransactionClient<T>))
const

Properties

hashCode int
The hash code for this object.
no setterinherited
headers TransactionHeaders?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transaction Transaction?
final

Methods

call<R>(Future<R> fn(T tx), {int maxWait = 2000, int timeout = 5000, TransactionIsolationLevel? isolationLevel}) Future<R>
Interactive transactions.
commit() Future<void>
Commit a transaction.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollback() Future<void>
Rollback a transaction.
start({TransactionHeaders? headers, int maxWait = 2000, int timeout = 5000, TransactionIsolationLevel? isolationLevel}) Future<T>
Start a new transaction.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

generateTraceparent() String
Generate current transaction traceparent.