open static method
Opens the database snapshots holds.
Implementation
static Future<DVSnapshotDatabaseAdapter> open(
DVTableSnapshots snapshots,
) async {
final DVSnapshotDatabaseAdapter adapter =
DVSnapshotDatabaseAdapter._(snapshots);
final Map<String, String> saved = await snapshots.readAll();
for (final MapEntry<String, String> table in saved.entries) {
adapter._memory.importTable(
table.key,
jsonDecode(table.value) as Map<String, Object?>,
);
}
return adapter;
}