From 56b86cd5f53fbcae60cefc5c505252229569c6bd Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Wed, 13 Aug 2025 17:16:46 +0400 Subject: [PATCH] add comment about :memory: in sync-engine --- core/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib.rs b/core/lib.rs index c260694cf..e769310f7 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -255,6 +255,8 @@ impl Database { enable_indexes: bool, enable_views: bool, ) -> Result> { + // turso-sync-engine create 2 databases with different names in the same IO if MemoryIO is used + // in this case we need to bypass registry (as this is MemoryIO DB) but also preserve original distinction in names (e.g. :memory:-draft and :memory:-synced) if path.starts_with(":memory:") { return Self::open_with_flags_bypass_registry( io,