DatabaseExecutor class

Common API for Database and Transaction to execute SQL commands

Implementers

Constructors

DatabaseExecutor()

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. [...]
delete(String table, {String where, List whereArgs}) → Future<int>
Convenience method for deleting rows in the database. [...]
execute(String sql, [List arguments]) → Future<void>
Execute an SQL query with no return value
insert(String table, Map<String, dynamic> values, {String nullColumnHack, ConflictAlgorithm conflictAlgorithm}) → Future<int>
INSERT helper
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>>>
Helper to query a table [...]
rawDelete(String sql, [List arguments]) → Future<int>
Executes a raw SQL DELETE query [...]
rawInsert(String sql, [List arguments]) → Future<int>
Execute a raw SQL INSERT query [...]
rawQuery(String sql, [List arguments]) → Future<List<Map<String, dynamic>>>
Execute a raw SQL SELECT query [...]
rawUpdate(String sql, [List arguments]) → Future<int>
Execute a raw SQL UPDATE query [...]
update(String table, Map<String, dynamic> values, {String where, List whereArgs, ConflictAlgorithm conflictAlgorithm}) → Future<int>
Convenience method for updating rows in the database. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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