Skip to main content

checkpoint

Function checkpoint 

Source
pub async fn checkpoint(pool: &SqlitePool) -> ClawResult<()>
Expand description

Trigger an immediate WAL checkpoint, flushing WAL frames into the main database file.

§Errors

Returns a crate::error::ClawError if the checkpoint PRAGMA fails.