Transaction class abstract
Default transaction class
- Available extensions
Constructors
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
-
apply(
) → Future< void> - Commit to persist data
-
cancel(
) → Future< void> - Discard any change happen in current transaction
-
exec(
String sql, {Iterable? parameters}) → Future< Changes> - Quick execution of sql query without holding any statment object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepare(
String query, [dynamic option]) → Future< Statement> - Returns a prepared statement for read/write.
-
protectQuery<
T> (String query, {Iterable? parameters, RowCreator< T> ? creator, required Future<void> block(Rows<T> )}) → Future<void> -
Available on Transaction, provided by the SafeTransaction extension
A wrapper method to sure that Rows will always close at the after exit the function. -
query<
T> (String query, {Iterable? parameters, RowCreator< T> ? creator}) → Future<Rows< T> > - A wrapped method around statement to execute a statement select query
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited