mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
return parse error when calling unimplemented pragma checkpoint modes
This commit is contained in:
parent
7893ed7803
commit
20115c1e74
2 changed files with 24 additions and 27 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue