Update core/lib.rs

Co-authored-by: bit-aloo <84662239+Shourya742@users.noreply.github.com>
This commit is contained in:
Lucas Forato
2025-08-07 10:24:38 -03:00
committed by Lucas Forato
parent 804df8dd7a
commit 4161f68774

View File

@@ -1843,15 +1843,16 @@ impl Connection {
let mut mods = std::collections::HashSet::new();
let schema = self._db.schema.lock().unwrap();
for table in schema.tables.values() {
if let Table::Virtual(vtab) = table.as_ref() {
if let Some(module_name) = vtab.module_name() {
mods.insert(module_name.to_string());
}
}
}
mods
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 {