rollback method
Implementation
Future<void> rollback() async {
if (_snapshot == null) return;
for (final entry in _snapshot!.entries) {
final table = tables[entry.key];
if (table == null) continue;
await table.clear();
for (final rowJson in entry.value) {
await table.insert(Row.fromJson(rowJson));
}
}
_snapshot = null;
}