StoreRef<K, V> class

A pointer to a store.

Provides access helper to data on the store using a given DatabaseClient.


StoreRef(String name)
A null name means a the main store. [...]
A pointer to the main store


hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The name of the store
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


add(DatabaseClient client, V value) Future<K>
Add a record, returns its generated key.
addAll(DatabaseClient client, List<V> values) Future<List<K>>
Add multiple records, returns the list of generated keys.
cast<RK, RV>() StoreRef<RK, RV>
Cast if needed
count(DatabaseClient client, {Filter filter}) Future<int>
count records.
delete(DatabaseClient client, {Finder finder}) Future<int>
Delete records matching a given finder. [...]
drop(DatabaseClient client) Future
Delete the store and its content
find(DatabaseClient client, {Finder finder}) Future<List<RecordSnapshot<K, V>>>
Find multiple records. [...]
findFirst(DatabaseClient client, {Finder finder}) Future<RecordSnapshot<K, V>>
Find a single record
findKey(DatabaseClient client, {Finder finder}) Future<K>
Find one key. [...]
findKeys(DatabaseClient client, {Finder finder}) Future<List<K>>
Find multiple keys. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
query({Finder finder}) QueryRef<K, V>
Create a query with a finder.
record(K key) RecordRef<K, V>
Create a record reference. [...]
records(Iterable<K> keys) RecordsRef<K, V>
Create a reference to multiple records
stream(DatabaseClient client, {Filter filter}) Stream<RecordSnapshot<K, V>>
Unsorted record stream
toString() String
A string representation of this object. [...]
update(DatabaseClient client, V value, {Finder finder}) Future<int>
Update records matching a given finder. [...]


operator ==(Object other) bool
The equality operator. [...]