mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 15:35:29 +01:00
Accept mode argument for checkpoint in connection api
This commit is contained in:
@@ -1188,13 +1188,13 @@ impl Connection {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn checkpoint(&self) -> Result<CheckpointResult> {
|
||||
pub fn checkpoint(&self, mode: CheckpointMode) -> Result<CheckpointResult> {
|
||||
if self.closed.get() {
|
||||
return Err(LimboError::InternalError("Connection closed".to_string()));
|
||||
}
|
||||
self.pager
|
||||
.borrow()
|
||||
.wal_checkpoint(self.wal_checkpoint_disabled.get())
|
||||
.wal_checkpoint(self.wal_checkpoint_disabled.get(), mode)
|
||||
}
|
||||
|
||||
/// Close a connection and checkpoint.
|
||||
|
||||
Reference in New Issue
Block a user