QueryExecute<OBJ, R> extension
Operations for query builders.
- on
-
- QueryBuilder<
OBJ, R, QOperations>
- QueryBuilder<
Methods
-
build(
) → DatabaseUniverseQuery< R> -
Available on QueryBuilder<
Create a query from this query builder.OBJ, R, QOperations> , provided by the QueryExecute extension -
count(
) → int -
Available on QueryBuilder<
Count how many objects match the query.OBJ, R, QOperations> , provided by the QueryExecute extension -
countAsync(
) → Future< int> -
Available on QueryBuilder<
Count how many objects match the query.OBJ, R, QOperations> , provided by the QueryExecute extension -
deleteAll(
{int? offset, int? limit}) → int -
Available on QueryBuilder<
Delete all objects that match this query. Returns the number of deleted objects.OBJ, R, QOperations> , provided by the QueryExecute extension -
deleteFirst(
{int? offset}) → bool -
Available on QueryBuilder<
Delete the first object that matches this query. Returns whether an object has been deleted.OBJ, R, QOperations> , provided by the QueryExecute extension -
exportJson(
{int? offset, int? limit}) → List< Map< String, dynamic> > -
Available on QueryBuilder<
Export the results of this query as json.OBJ, R, QOperations> , provided by the QueryExecute extension -
findAll(
{int? offset, int? limit}) → List< R> -
Available on QueryBuilder<
Find all objects that match this query.OBJ, R, QOperations> , provided by the QueryExecute extension -
findAllAsync(
{int? offset, int? limit}) → Future< List< R> > -
Available on QueryBuilder<
Find all objects that match this query.OBJ, R, QOperations> , provided by the QueryExecute extension -
findFirst(
{int? offset}) → R? -
Available on QueryBuilder<
Find the first object that matches this query orOBJ, R, QOperations> , provided by the QueryExecute extensionnull
if no object matches. -
findFirstAsync(
{int? offset}) → Future< R?> -
Available on QueryBuilder<
Find the first object that matches this query orOBJ, R, QOperations> , provided by the QueryExecute extensionnull
if no object matches. -
isEmpty(
) → bool -
Available on QueryBuilder<
YieldsOBJ, R, QOperations> , provided by the QueryExecute extensiontrue
if there are no objects that match the query. -
isEmptyAsync(
) → Future< bool> -
Available on QueryBuilder<
YieldsOBJ, R, QOperations> , provided by the QueryExecute extensiontrue
if there are no objects that match the query. -
watch(
{bool fireImmediately = false, int? offset, int? limit}) → Stream< List< R> > -
Available on QueryBuilder<
Create a watcher that yields the results of this query whenever its results have (potentially) changed.OBJ, R, QOperations> , provided by the QueryExecute extension -
watchLazy(
{bool fireImmediately = false}) → Stream< void> -
Available on QueryBuilder<
Watch the query for changes. IfOBJ, R, QOperations> , provided by the QueryExecute extensionfireImmediately
istrue
, an event will be fired immediately.