walCheckpoint method

Future<void> walCheckpoint()

Run WAL checkpoint passively.

Implementation

Future<void> walCheckpoint() async {
  if (_db == null || !_isOpen) return;
  try {
    await _db!.rawQuery('PRAGMA wal_checkpoint(PASSIVE)');
  } catch (e) {
    dbLogger.warning('SqliteEventStorage: walCheckpoint failed: $e');
  }
}