IEventBusDatabaseHelper<T extends DatabaseExecutor> class
abstract
- Implementers
Constructors
Properties
-
database
→ Future<
T> -
database instance of the database
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initDatabase
↔ Future<
T> Function() -
initDatabase called to initialize the database
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
int id) → Future< int> - delete removes the row specified by the id. The number of affected rows is returned. This should be 1 as long as the row exists.
-
firstIntValue(
List< Map< list) → int?String, Object?> > -
insert(
Map< String, dynamic> row) → Future<int> -
inserts
a row in the database where each key in the Map is a column name and the value is the column value. The return value is the id of the inserted row. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseInt(
Object? object) → int? - Try to convert anything (int, String) to an int.
-
queryAllRows(
) → Future< List< Map< >String, dynamic> > - queryAllRows fetches of the rows are returned as a list of maps, where each map is a key-value list of columns.
-
queryRowCount(
) → Future< int?> - queryRowCount fetches of the methods (insert, query, update, delete) can also be done using raw SQL commands. This method uses a raw query to give the row count.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited