mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
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:
parent
0149e86356
commit
e4a8ee5402
12 changed files with 79 additions and 78 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue