From 551dbf518e2f8abf5c819eab7af5469b7196a772 Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Tue, 7 Oct 2025 10:11:20 +0530 Subject: [PATCH] Add new mvcc_checkpoint_threshold pragma name --- core/pragma.rs | 4 ++++ parser/src/ast.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/core/pragma.rs b/core/pragma.rs index c83509a69..c238134e4 100644 --- a/core/pragma.rs +++ b/core/pragma.rs @@ -127,6 +127,10 @@ pub fn pragma_for(pragma: &PragmaName) -> Pragma { PragmaFlags::Result0 | PragmaFlags::SchemaReq | PragmaFlags::NoColumns1, &["cipher"], ), + PragmaName::MvccCheckpointThreshold => Pragma::new( + PragmaFlags::NoColumns1 | PragmaFlags::Result0, + &["mvcc_checkpoint_threshold"], + ), } } diff --git a/parser/src/ast.rs b/parser/src/ast.rs index ced93b722..6b69682f0 100644 --- a/parser/src/ast.rs +++ b/parser/src/ast.rs @@ -1449,6 +1449,8 @@ pub enum PragmaName { UserVersion, /// trigger a checkpoint to run on database(s) if WAL is enabled WalCheckpoint, + /// Sets or queries the threshold (in bytes) at which MVCC triggers an automatic checkpoint. + MvccCheckpointThreshold, } /// `CREATE TRIGGER` time