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,