getSnapshot method

Future<RecordSnapshot<K, V>?> getSnapshot(
  1. DatabaseClient databaseClient
)

Get a record snapshot from the database.

Implementation

Future<RecordSnapshot<K, V>?> getSnapshot(
  DatabaseClient databaseClient,
) async {
  var client = getClient(databaseClient);

  return snapshotFromImmutableRecordOrNull(
    await client
        .getSembastStore(store)
        .txnGetImmutableRecord(client.sembastTransaction, key as Key),
  );
}