return parse error when calling unimplemented pragma checkpoint modes

This commit is contained in:
pedrocarlo 2025-06-17 11:42:20 -03:00
parent 7893ed7803
commit 20115c1e74
2 changed files with 24 additions and 27 deletions

View file

@ -4,6 +4,7 @@
use std::array;
use std::cell::UnsafeCell;
use std::collections::HashMap;
use strum::EnumString;
use tracing::{instrument, Level};
use std::fmt::Formatter;
@ -60,7 +61,8 @@ impl CheckpointResult {
}
}
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, EnumString)]
#[strum(ascii_case_insensitive)]
pub enum CheckpointMode {
/// Checkpoint as many frames as possible without waiting for any database readers or writers to finish, then sync the database file if all frames in the log were checkpointed.
Passive,