move load extensions to Connection

Extensions are loaded per connection and not per database as per SQLite
behaviour. This also helps with removing locks.
This commit is contained in:
Pere Diaz Bou 2025-03-04 13:32:25 +01:00
parent 0149e86356
commit e4a8ee5402
12 changed files with 79 additions and 78 deletions

View file

@ -1,7 +1,5 @@
use js_sys::{Array, Object};
use limbo_core::{
maybe_init_database_file, OpenFlags, Pager, Result, WalFileShared,
};
use limbo_core::{maybe_init_database_file, OpenFlags, Pager, Result, WalFileShared};
use std::cell::RefCell;
use std::rc::Rc;
use std::sync::Arc;
@ -329,7 +327,6 @@ impl DatabaseStorage {
}
}
impl limbo_core::DatabaseStorage for DatabaseStorage {
fn read_page(&self, page_idx: usize, c: limbo_core::Completion) -> Result<()> {
let r = match c {