diff --git a/cli/app.rs b/cli/app.rs index 2565bbe8e..88c5e9669 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -75,6 +75,8 @@ pub struct Opts { pub tracing_output: Option, #[clap(long, help = "Start MCP server instead of interactive shell")] pub mcp: bool, + #[clap(long, help = "Enable experimental logical log feature")] + pub experimental_logical_log: bool, } const PROMPT: &str = "turso> "; @@ -180,6 +182,11 @@ impl Limbo { flags, turso_core::DatabaseOpts::new() .with_mvcc(opts.experimental_mvcc) + .with_mvcc_mode(if opts.experimental_logical_log { + turso_core::MvccMode::LogicalLog + } else { + turso_core::MvccMode::Noop + }) .with_indexes(indexes_enabled) .with_views(opts.experimental_views) .with_strict(opts.experimental_strict),