SembastQueryRefExtension<K, V> extension
Query db actions.
- on
-
- QueryRef<
K, V>
- QueryRef<
Methods
-
count(
DatabaseClient client) → Future< int> - count records.
-
getSnapshot(
DatabaseClient client) → Future< RecordSnapshot< K, V> ?> - Find first record matching the query.
-
getSnapshots(
DatabaseClient client) → Future< List< RecordSnapshot< >K, V> > - Find multiple records.
-
onCount(
Database database) → Stream< int> - onCount stream, called when the number of items changes.
-
onSnapshot(
Database database) → Stream< RecordSnapshot< K, V> ?> - Find first record (null if none) and listen for changes.
-
onSnapshots(
Database database) → Stream< List< RecordSnapshot< >K, V> > - Find multiple records and listen for changes.