pub fn sync_wal() -> Result<(), String>
Make every commit so far durable: the write-ahead log synced to disk. Commits are only written, not synced, until a checkpoint; this is for a step that can’t be undone after them.