From 0eb2aa123d6998ae85db49d2e7c4ba969a76bb81 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Mon, 15 Sep 2025 12:27:18 +0200 Subject: [PATCH] cli/app: add mvcc mode --- cli/app.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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),