From 697eb35ca95f4c13da46b9de68d040eb716cb3fe Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Thu, 7 Aug 2025 23:44:29 +0530 Subject: [PATCH] Add query_only field to Connection --- core/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib.rs b/core/lib.rs index 903e1b552..9d4e4e6cd 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -371,6 +371,7 @@ impl Database { capture_data_changes: RefCell::new(CaptureDataChangesMode::Off), closed: Cell::new(false), attached_databases: RefCell::new(DatabaseCatalog::new()), + query_only: Cell::new(false), }); let builtin_syms = self.builtin_syms.borrow(); // add built-in extensions symbols to the connection to prevent having to load each time @@ -726,6 +727,7 @@ pub struct Connection { closed: Cell, /// Attached databases attached_databases: RefCell, + query_only: Cell, } impl Connection {