SembastRecordRefExtension<K, V> extension
Record ref sembast public extension.
Provides access helper to data on the store using a given DatabaseClient.
- on
-
- RecordRef<
K, V>
- RecordRef<
Methods
-
add(
DatabaseClient databaseClient, V value) → Future< K?> -
Available on RecordRef<
Create the record if it does not exist.K, V> , provided by the SembastRecordRefExtension extension -
delete(
DatabaseClient databaseClient) → Future< K?> -
Available on RecordRef<
Delete the record. Returns the key if deleted, null if not found.K, V> , provided by the SembastRecordRefExtension extension -
exists(
DatabaseClient databaseClient) → Future< bool> -
Available on RecordRef<
Return true if the record exists.K, V> , provided by the SembastRecordRefExtension extension -
get(
DatabaseClient databaseClient) → Future< V?> -
Available on RecordRef<
Get a record value from the database.K, V> , provided by the SembastRecordRefExtension extension -
getSnapshot(
DatabaseClient databaseClient) → Future< RecordSnapshot< K, V> ?> -
Available on RecordRef<
Get a record snapshot from the database.K, V> , provided by the SembastRecordRefExtension extension -
onSnapshot(
Database database) → Stream< RecordSnapshot< K, V> ?> -
Available on RecordRef<
Get a stream of a record snapshot from the database.K, V> , provided by the SembastRecordRefExtension extension -
put(
DatabaseClient databaseClient, V value, {bool? merge, bool? ifNotExists}) → Future< V> -
Available on RecordRef<
Save a record, create if needed.K, V> , provided by the SembastRecordRefExtension extension -
snapshot(
V value) → RecordSnapshot< K, V> -
Available on RecordRef<
Create a snapshot of a record with a given value.K, V> , provided by the SembastRecordRefExtension extension -
update(
DatabaseClient databaseClient, V value) → Future< V?> -
Available on RecordRef<
Update a record.K, V> , provided by the SembastRecordRefExtension extension