saveTableSnapshot method
Implementation
@override
Future<void> saveTableSnapshot(
String tableName,
List<Map<String, dynamic>> rows,
) async {
await _tracked(() async {
await _ensureInitialized();
await _locks.getTableLock(tableName).synchronized(() async {
final file = _tableFile(tableName);
final json = jsonEncode(rows);
await _fileStore.atomicWrite(file, json);
await _fileStore.cleanupBackup(file);
});
});
}