Transaction class final

{@template localpocket.transaction} One open interactive transaction session. {@endtemplate}

Constructors

Transaction.internal({required RuntimeClient runtime, required String session, required void ensureOpen()})
Internal: created by the runtime when a transaction begins.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
session → String
The kernel session id carried by every request of this transaction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(String name) → Future<void>
Releases the innermost savepoint (it must be name), merging its work into the parent scope.
rollbackTo(String name) → Future<void>
Rolls the transaction back to name, undoing every later savepoint.
savepoint() → Future<String>
Opens a named savepoint and returns its name.
store<S extends StoreDef<S>>(S def) → Store<S>
A store view bound to this transaction.
toString() → String
A string representation of this object.
inherited

Operators

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