QueryExecute< OBJ, R> extension
Extension for QueryBuilders
- on
-
- QueryBuilder<
OBJ, R, QQueryOperations>
- QueryBuilder<
Methods
-
build(
) → Query< R> - Create a query from this query builder.
-
count(
) → Future< int> - Count how many objects match this query.
-
countSync(
) → int - Count how many objects match this query.
-
deleteAll(
) → Future< int> - Delete all objects that match this query. Returns the number of deleted objects.
-
deleteAllSync(
) → int - Delete all objects that match this query. Returns the number of deleted objects.
-
deleteFirst(
) → Future< bool> - Delete the first object that matches this query. Returns whether a object has been deleted.
-
deleteFirstSync(
) → bool - Delete the first object that matches this query. Returns whether a object has been deleted.
-
exportJson(
) → Future< List< Map< String, dynamic>>> - Export the results of this query as json.
-
exportJsonRaw<
T>( T callback(Uint8List)) → Future< T> - Export the results of this query as json bytes.
-
exportJsonRawSync<
T>( T callback(Uint8List)) → T - Export the results of this query as json bytes.
-
exportJsonSync(
) → List< Map< String, dynamic>> - Export the results of this query as json.
-
findAll(
) → Future< List< R>> - Find all objects that match this query.
-
findAllSync(
) → List< R> - Find all objects that match this query.
-
findFirst(
) → Future< R?> -
Find the first object that matches this query or
null
if no object matches. -
findFirstSync(
) → R? -
Find the first object that matches this query or
null
if no object matches. -
isEmpty(
) → Future< bool> -
Returns
true
if there are no objects that match this query. -
isEmptySync(
) → bool -
Returns
true
if there are no objects that match this query. -
isNotEmpty(
) → Future< bool> -
Returns
true
if there are objects that match this query. -
isNotEmptySync(
) → bool -
Returns
true
if there are objects that match this query. -
watch(
{bool fireImmediately = false}) → Stream< List< R>> - Create a watcher that yields the results of this query whenever its results have (potentially) changed.
-
watchLazy(
{bool fireImmediately = false}) → Stream< void> -
Watch the query for changes. If
fireImmediately
istrue
, an event will be fired immediately.