Checkpoints the WAL. Best-effort.
(&self)
| 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) { |
no outgoing calls