MCPcopy Create free account
hub / github.com/cosdata/cosdata / unload_collection

Method unload_collection

src/models/collection_cache.rs:148–155  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

146 }
147
148 pub fn unload_collection(&self, name: &str) -> Result<(), WaCustomError> {
149 // Clean up mappings
150 self.name_to_key.remove(name);
151
152 // Log the unloading
153 info!("Explicitly unloaded collection '{}'", name);
154 Ok(())
155 }
156
157 pub fn update_collection_usage(&self, name: &str) -> Result<(), WaCustomError> {
158 let key = match self.name_to_key.get(name) {

Callers 1

unload_collectionFunction · 0.80

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected