Switch Connection to use Arc instead of Rc

Connection needs to be Arc so that bindings can wrap it with `Mutex` for
multi-threading.
This commit is contained in:
Pekka Enberg
2025-06-16 10:08:00 +03:00
parent 7e9a25ebca
commit 90c1e3fc06
32 changed files with 124 additions and 187 deletions

View File

@@ -41,7 +41,7 @@ pub struct Database {
#[napi(writable = false)]
pub name: String,
_db: Arc<limbo_core::Database>,
conn: Rc<limbo_core::Connection>,
conn: Arc<limbo_core::Connection>,
io: Arc<dyn limbo_core::IO>,
}