mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-28 04:14:34 +01:00
extract page cache to be multi threaded
This commit is contained in:
@@ -33,7 +33,7 @@ pub mod util;
|
||||
use util::sqlite3_safety_check_sick_or_ok;
|
||||
|
||||
pub struct sqlite3 {
|
||||
pub(crate) _db: Rc<limbo_core::Database>,
|
||||
pub(crate) _db: Arc<limbo_core::Database>,
|
||||
pub(crate) conn: Rc<limbo_core::Connection>,
|
||||
pub(crate) err_code: ffi::c_int,
|
||||
pub(crate) err_mask: ffi::c_int,
|
||||
@@ -43,7 +43,7 @@ pub struct sqlite3 {
|
||||
}
|
||||
|
||||
impl sqlite3 {
|
||||
pub fn new(db: Rc<limbo_core::Database>, conn: Rc<limbo_core::Connection>) -> Self {
|
||||
pub fn new(db: Arc<limbo_core::Database>, conn: Rc<limbo_core::Connection>) -> Self {
|
||||
Self {
|
||||
_db: db,
|
||||
conn,
|
||||
|
||||
Reference in New Issue
Block a user