IsarQuery<T> class
abstract
Querying is how you find records that match certain conditions.
It is important to call close()
when you are done with a query, otherwise
you will leak resources.
- Available Extensions
Constructors
Properties
Methods
-
close(
) → void - Release all resources associated with this query.
-
count(
) → int - Finds the smallest value matching the query. Null values are considered smaller than all other values.
-
deleteAll(
{int? offset, int? limit}) → int - Delete all objects that match this query. Returns the number of deleted objects.
-
deleteFirst(
{int? offset}) → bool - Delete the first object that matches this query. Returns whether an object has been deleted.
-
exportJson(
{int? offset, int? limit}) → List< Map< String, dynamic> > - Export the results of this query as json.
-
findAll(
{int? offset, int? limit}) → List< T> - Find all objects that match this query.
-
findFirst(
{int? offset}) → T? -
Find the first object that matches this query or
null
if no object matches. -
isEmpty(
) → bool -
Yields
true
if there are no objects that match the query. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateProperties(
Map< int, dynamic> changes, {int? offset, int? limit}) → int - This is a low level method to update objects.
-
watch(
{bool fireImmediately = false, int? offset, int? limit}) → Stream< List< T> > - 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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited