AbstractBriteDatabaseExecutor class abstract
Wrap sqlite_api.DatabaseExecutor to implement BriteDatabaseExecutor
- Implemented types
- Implementers
- Available Extensions
Constructors
- AbstractBriteDatabaseExecutor(DatabaseExecutor _delegate)
-
Construct a AbstractBriteDatabaseExecutor backed by a sqlite_api.DatabaseExecutor
const
Properties
Methods
-
batch(
) → IBriteBatch -
Creates a batch, used for performing multiple operation
in a single atomic operation.
override
-
delete(
String table, {String? where, List< Object?> ? whereArgs}) → Future<int> -
Convenience method for deleting rows in the database.
override
-
execute(
String sql, [List< Object?> ? arguments]) → Future<void> -
Execute an SQL query with no return value.
override
-
executeAndTrigger(
Iterable< String> tables, String sql, [List<Object?> ? arguments]) → Future<void> -
See execute
override
-
insert(
String table, JSON 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.override -
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< JSON> > -
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.
override
-
queryCursor(
String table, {bool? distinct, List< String> ? columns, String? where, List<Object?> ? whereArgs, String? groupBy, String? having, String? orderBy, int? limit, int? offset, int? bufferSize}) → Future<QueryCursor> -
See DatabaseExecutor.rawQueryCursor for details about the argument
bufferSize
See DatabaseExecutor.query for the other arguments.override -
rawDelete(
String sql, [List< Object?> ? arguments]) → Future<int> -
Executes a raw SQL DELETE query and returns the
number of changes made.
override
-
rawDeleteAndTrigger(
Iterable< String> tables, String sql, [List<Object?> ? arguments]) → Future<int> -
See rawDelete
override
-
rawInsert(
String sql, [List< Object?> ? arguments]) → Future<int> -
Executes a raw SQL INSERT query and returns the last inserted row ID.
override
-
rawInsertAndTrigger(
Iterable< String> tables, String sql, [List<Object?> ? arguments]) → Future<int> -
See rawInsert
override
-
rawQuery(
String sql, [List< Object?> ? arguments]) → Future<List< JSON> > -
Executes a raw SQL SELECT query and returns a list
of the rows that were found.
override
-
rawQueryCursor(
String sql, List< Object?> ? arguments, {int? bufferSize}) → Future<QueryCursor> -
Executes a raw SQL SELECT with a cursor.
override
-
rawUpdate(
String sql, [List< Object?> ? arguments]) → Future<int> -
Executes a raw SQL UPDATE query and returns
the number of changes made.
override
-
rawUpdateAndTrigger(
Iterable< String> tables, String sql, [List<Object?> ? arguments]) → Future<int> -
See rawUpdate
override
-
sendTableTrigger(
Iterable< String> tables) → void - Override this method to send notifications
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String table, JSON values, {String? where, List< Object?> ? whereArgs, ConflictAlgorithm? conflictAlgorithm}) → Future<int> -
Convenience method for updating rows in the database. Returns
the number of changes made
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited