createQuery abstract method
Create an stream which will notify subscribers with a Query
query for
execution.
Subscribers will receive an immediate notification for initial data as well as subsequent
notifications for when the supplied table
data changes through the operations: insert, update, delete.
Unsubscribe when you no longer want updates to a query.
Note: To skip the immediate notification and only receive subsequent notifications when data has changed call skip(1) on the returned stream.
Warning: this method does not perform the query! Only by subscribing to the returned Stream will the operation occur.
Implementation
@useResult
Stream<Query> createQuery(
String table, {
bool? distinct,
List<String>? columns,
String? where,
List<Object?>? whereArgs,
String? groupBy,
String? having,
String? orderBy,
int? limit,
int? offset,
});