INNER CODE UNIT · Rust
fetch_storage_mut
gluesql/gluesql · storages/composite-storage/src/lib.rs:75
fn fetch_storage_mut(&mut self, table_name: &str) -> Result<&mut dyn IStorage> {
let engine = self.fetch_engine(table_name)?;
match self.storages.get_mut(&engine) {
Some(storage) => Ok(storage.as_mut()),
None => Err(Error::StorageMsg(format!(
"[fetch_storage_mut] storage not found for table: {table_name}"
))),
}
}
}
impl gluesql_core::store::AlterTable for CompositeStorage {}
impl gluesql_core::store::Index for CompositeStorage {}
impl gluesql_core::store::IndexMut for CompositeStorage {}
impl Metadata for CompositeStorage {}
impl gluesql_core::store::CustomFunction for CompositeStorage {}
impl gluesql_core::store::CustomFunctionMut for CompositeStorage {}