Transaction class final

One transaction callback. Its statements use the surrounding connection.

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

batch() → Batch
Collects statements and runs them in Batch.commit.
delete(String table, {String? where, List<Object?>? whereArgs}) → Future<int>
Deletes the rows selected by where.
execute(String sql, [List<Object?>? arguments]) → Future<void>
Runs SQL that does not need its result.
insert(String table, Map<String, Object?> values, {String? nullColumnHack, ConflictAlgorithm? conflictAlgorithm}) → Future<BigInt>
Inserts values and returns the new row id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String table, {bool? distinct, List<String>? columns, String? where, List<Object?>? whereArgs, String? groupBy, String? having, String? orderBy, int? limit, int? offset}) → Future<List<Map<String, Object?>>>
Reads table.
rawDelete(String sql, [List<Object?>? arguments]) → Future<int>
Runs one delete and returns the changed-row count.
rawInsert(String sql, [List<Object?>? arguments]) → Future<BigInt>
Runs one insert and returns its row id.
rawQuery(String sql, [List<Object?>? arguments]) → Future<List<Map<String, Object?>>>
Runs one statement and returns the rows as maps.
rawUpdate(String sql, [List<Object?>? arguments]) → Future<int>
Runs one update and returns the changed-row count.
toString() → String
A string representation of this object.
inherited
transaction<T>(Future<T> action(Transaction txn)) → Future<T>
Runs action in a savepoint inside this transaction.
update(String table, Map<String, Object?> values, {String? where, List<Object?>? whereArgs, ConflictAlgorithm? conflictAlgorithm}) → Future<int>
Updates the rows selected by where.

Operators

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