SembastQueryRefSyncExtension<K, V> extension

Query db actions. synchronous access.

on

Methods

countSync(DatabaseClient client) int

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

count records. Synchronous version.
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.
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.
onCountSync(Database database) Stream<int>

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

onCount stream, called when the number of items 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.
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.