StoreRef<K extends Key?, V extends Value?> class
abstract
A pointer to a store.
- Available extensions
Constructors
- StoreRef.new(String name)
-
A null name means a the main store.
factory
- StoreRef.main()
-
A pointer to the main store
factory
Properties
Methods
-
add(
DatabaseClient databaseClient, V value) → Future< K> -
Available on StoreRef<
Add a record, returns its generated key.K, V> , provided by the SembastStoreRefExtension extension -
addAll(
DatabaseClient databaseClient, List< V> values) → Future<List< K> > -
Available on StoreRef<
Add multiple records, returns the list of generated keys.K, V> , provided by the SembastStoreRefExtension extension -
addOnChangesListener(
Database database, TransactionRecordChangeListener< K, V> onChanges) → void -
Available on StoreRef<
Listen for changes on a given store.K, V> , provided by the SembastStoreRefExtension extension -
cast<
RK extends Key?, RV extends Value?> () → StoreRef< RK, RV> - Cast if needed
-
count(
DatabaseClient databaseClient, {Filter? filter}) → Future< int> -
Available on StoreRef<
count records.K, V> , provided by the SembastStoreRefExtension extension -
countSync(
DatabaseClient databaseClient, {Filter? filter}) → int -
Available on StoreRef<
count records.K, V> , provided by the SembastStoreRefSyncExtension extension -
delete(
DatabaseClient databaseClient, {Finder? finder}) → Future< int> -
Available on StoreRef<
Delete records matching a given finder.K, V> , provided by the SembastStoreRefExtension extension -
drop(
DatabaseClient databaseClient) → Future< void> -
Available on StoreRef<
Delete the store and its contentK, V> , provided by the SembastStoreRefExtension extension -
find(
DatabaseClient databaseClient, {Finder? finder}) → Future< List< RecordSnapshot< >K, V> > -
Available on StoreRef<
Find multiple records.K, V> , provided by the SembastStoreRefExtension extension -
findFirst(
DatabaseClient databaseClient, {Finder? finder}) → Future< RecordSnapshot< K, V> ?> -
Available on StoreRef<
Find a single record.K, V> , provided by the SembastStoreRefExtension extension -
findFirstSync(
DatabaseClient databaseClient, {Finder? finder}) → RecordSnapshot< K, V> ? -
Available on StoreRef<
Find a single record.K, V> , provided by the SembastStoreRefSyncExtension extension -
findKey(
DatabaseClient databaseClient, {Finder? finder}) → Future< K?> -
Available on StoreRef<
Find one key.K, V> , provided by the SembastStoreRefExtension extension -
findKeys(
DatabaseClient databaseClient, {Finder? finder}) → Future< List< K> > -
Available on StoreRef<
Find multiple keys.K, V> , provided by the SembastStoreRefExtension extension -
findKeysSync(
DatabaseClient databaseClient, {Finder? finder}) → List< K> -
Available on StoreRef<
Find multiple keys.K, V> , provided by the SembastStoreRefSyncExtension extension -
findKeySync(
DatabaseClient databaseClient, {Finder? finder}) → K? -
Available on StoreRef<
Find one key.K, V> , provided by the SembastStoreRefSyncExtension extension -
findSync(
DatabaseClient databaseClient, {Finder? finder}) → List< RecordSnapshot< K, V> > -
Available on StoreRef<
Find multiple records. Synchronous access.K, V> , provided by the SembastStoreRefSyncExtension extension -
generateIntKey(
DatabaseClient databaseClient) → Future< int> -
Available on StoreRef<
Generate a new int key.K, V> , provided by the SembastStoreRefExtension extension -
generateKey(
DatabaseClient databaseClient) → Future< K> -
Available on StoreRef<
Generate a new key.K, V> , provided by the SembastStoreRefExtension extension -
immutableListToSnapshots(
List< ImmutableSembastRecord> records) → List<SembastRecordSnapshot< K, V> > -
Available on StoreRef<
create snapshot list.K, V> , provided by the SembastStoreRefExtension extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCount(
Database database, {Filter? filter}) → Stream< int> -
Available on StoreRef<
onCount stream, called when the number of items changes.K, V> , provided by the SembastStoreRefExtension extension -
query(
{Finder? finder}) → QueryRef< K, V> -
Available on StoreRef<
Create a query with a finder.K, V> , provided by the SembastStoreRefExtension extension -
record(
K key) → RecordRef< K, V> - Create a record reference.
-
records(
Iterable< K> keys) → RecordsRef<K, V> - Create a reference to multiple records
-
recordsFromRefs(
List< RecordRef< refs) → RecordsRef<K, V> >K, V> -
Available on StoreRef<
Records ref from a list of record refs.K, V> , provided by the SembastStoreRefCommonExtension extension -
removeOnChangesListener(
Database database, TransactionRecordChangeListener< K, V> onChanges) → void -
Available on StoreRef<
Stop listening for changes.K, V> , provided by the SembastStoreRefExtension extension -
stream(
DatabaseClient databaseClient, {Filter? filter}) → Stream< RecordSnapshot< K, V> > -
Available on StoreRef<
Unsorted record streamK, V> , provided by the SembastStoreRefExtension extension -
toString(
) → String -
A string representation of this object.
inherited
-
update(
DatabaseClient databaseClient, V value, {Finder? finder}) → Future< int> -
Available on StoreRef<
Update records matching a given finder.K, V> , provided by the SembastStoreRefExtension extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited