getSnapshotSync method

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

Get a record snapshot from the database synchronously.

Implementation

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

  return client
      .getSembastStore(store)
      .txnGetRecordSnapshotSync<K, V>(client.sembastTransaction, key);
}