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