Transaction class
Default SQLite transaction
By default, the sql.Database.begin
will create a default Transaction without transaction control.
To create the transaction with specific control pass sql.TransactionCreator
return from transactionCreator.
Properties
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.
-
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