snapshotNow method
void
snapshotNow()
Writes a consistent copy of the store to <path>.snapshot, replacing any
previous one. Called by the periodic timer; also safe to call directly for
a manual checkpoint. A no-op for an in-memory database.
Implementation
void snapshotNow() {
if (_path == backend.inMemoryPath) return;
final target = '$_path.snapshot';
backend.deleteFileIfPresent(target);
_open.execute('VACUUM INTO ?', [target]);
}