Add new mvcc_checkpoint_threshold pragma name

This commit is contained in:
bit-aloo
2025-10-07 10:11:20 +05:30
parent fb5f5d9a90
commit 551dbf518e
2 changed files with 6 additions and 0 deletions

View File

@@ -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"],
),
}
}

View File

@@ -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