MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / checkpoint

Method checkpoint

src/global_db.rs:3943–3948  ·  view source on GitHub ↗

Checkpoints the WAL. Best-effort.

(&self)

Source from the content-addressed store, hash-verified

3941
3942 /// Checkpoints the WAL. Best-effort.
3943 pub async fn checkpoint(&self) {
3944 let _ = self
3945 .conn
3946 .execute_batch("PRAGMA wal_checkpoint(TRUNCATE);")
3947 .await;
3948 }
3949
3950 /// Consumes the `GlobalDb`, closing the underlying connection.
3951 pub fn close(self) {

Calls

no outgoing calls