Transaction class
Database transaction to use during a transaction
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
batch(
) → Batch -
Creates a batch, used for performing multiple operation
in a single atomic operation. [...]
inherited
-
delete(
String table, {String where, List whereArgs}) → Future< int> -
Convenience method for deleting rows in the database. [...]
inherited
-
execute(
String sql, [List arguments]) → Future< void> -
Execute an SQL query with no return value [...]
inherited
-
insert(
String table, Map< String, dynamic> values, {String nullColumnHack, ConflictAlgorithm conflictAlgorithm}) → Future<int> -
This method helps insert a map of
values
into the specifiedtable
and returns the id of the last inserted row. [...]inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
query(
String table, {bool distinct, List< String> columns, String where, List whereArgs, String groupBy, String having, String orderBy, int limit, int offset}) → Future<List< Map< >String, dynamic> > -
This is a helper to query a table and return the items found. All optional
clauses and filters are formatted as SQL queries
excluding the clauses' names. [...]
inherited
-
rawDelete(
String sql, [List arguments]) → Future< int> -
Executes a raw SQL DELETE query and returns the
number of changes made. [...]
inherited
-
rawInsert(
String sql, [List arguments]) → Future< int> -
Executes a raw SQL INSERT query and returns the last inserted row ID. [...]
inherited
-
rawQuery(
String sql, [List arguments]) → Future< List< Map< >String, dynamic> > -
Executes a raw SQL SELECT query and returns a list
of the rows that were found. [...]
inherited
-
rawUpdate(
String sql, [List arguments]) → Future< int> -
Executes a raw SQL UPDATE query and returns
the number of changes made. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
update(
String table, Map< String, dynamic> values, {String where, List whereArgs, ConflictAlgorithm conflictAlgorithm}) → Future<int> -
Convenience method for updating rows in the database. Returns
the number of changes made [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited