fix: broken file after merge

This commit is contained in:
Lucas Forato
2025-08-07 10:49:36 -03:00
parent 4161f68774
commit 8b1b79bc93

View File

@@ -62,7 +62,6 @@ pub use io::{
};
use parking_lot::RwLock;
use schema::Schema;
use std::ffi::CStr;
use std::{
borrow::Cow,
cell::{Cell, RefCell, UnsafeCell},
@@ -1839,20 +1838,24 @@ impl Connection {
pub fn get_pager(&self) -> Rc<Pager> {
self.pager.borrow().clone()
}
pub fn get_used_vtab_mods(&self) -> std::collections::HashSet<String> {
let mut mods = std::collections::HashSet::new();
let mut mods: std::collections::HashSet<String> = std::collections::HashSet::new();
let schema = self._db.schema.lock().unwrap();
schema.tables.values()
.filter_map(|table| {
if let Table::Virtual(vtab) = table.as_ref() {
vtab.module_name().map(|name| name.to_string())
} else {
None
}
})
.collect()
schema
.tables
.values()
.filter_map(|table| {
if let Table::Virtual(vtab) = table.as_ref() {
vtab.module_name().map(|name| name.to_string())
} else {
None
}
})
.collect()
}
pub fn get_query_only(&self) -> bool {