mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-09 19:24:21 +01:00
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:
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user