QueryRef<K extends Key?, V extends Value?> class abstract

A query on a store.

Available extensions

Constructors

QueryRef.new()

Properties

finder Finder?

Available on QueryRef<K, V>, provided by the SembastQueryRefCommonExtension extension

Finder if any.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

count(DatabaseClient client) Future<int>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

count records.
countSync(DatabaseClient client) int

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

count records. Synchronous version.
delete(DatabaseClient client) Future<int>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Delete records matching the query.
getKey(DatabaseClient client) Future<K?>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find first record key matching the query.
getKeys(DatabaseClient client) Future<List<K>>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find multiple record keys
getKeysSync(DatabaseClient client) List<K>

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find multiple record keys. Synchronous version.
getKeySync(DatabaseClient client) → K?

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find first record key matching the query. Synchrnous version.
getSnapshot(DatabaseClient client) Future<RecordSnapshot<K, V>?>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find first record matching the query.
getSnapshots(DatabaseClient client) Future<List<RecordSnapshot<K, V>>>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find multiple records.
getSnapshotsSync(DatabaseClient client) List<RecordSnapshot<K, V>>

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find multiple records. Synchronous version.
getSnapshotSync(DatabaseClient client) RecordSnapshot<K, V>?

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find first record matching the query. Synchrnous version.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCount(Database database) Stream<int>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

onCount stream, called when the number of items changes.
onCountSync(Database database) Stream<int>

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

onCount stream, called when the number of items changes.
onKey(Database database) Stream<K?>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find first record key (null if none) and listen for changes.
onKeys(Database database) Stream<List<K>>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find multiple records and listen for changes.
onKeysSync(Database database) Stream<List<K>>

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find multiple records and listen for changes.
onKeySync(Database database) Stream<K?>

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find first record key (null if none) and listen for changes.
onSnapshot(Database database) Stream<RecordSnapshot<K, V>?>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find first record (null if none) and listen for changes.
onSnapshots(Database database) Stream<List<RecordSnapshot<K, V>>>

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension extension

Find multiple records and listen for changes.
onSnapshotsSync(Database database) Stream<List<RecordSnapshot<K, V>>>

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find multiple records and listen for changes.
onSnapshotSync(Database database) Stream<RecordSnapshot<K, V>?>

Available on QueryRef<K, V>, provided by the SembastQueryRefSyncExtension extension

Find first record (null if none) and listen for changes.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited