SembastQueryRefExtension<K, V> extension

Query db actions.

on

Methods

count(DatabaseClient client) Future<int>

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

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

Available on QueryRef<K, V>, provided by the SembastQueryRefExtension 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.
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.