MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / load_catalog

Method load_catalog

graphlite/src/catalog/manager.rs:230–240  ·  view source on GitHub ↗

Load a specific catalog from storage Loads the state of a single catalog from storage. # Arguments `catalog_name` - Name of the catalog to load # Returns `Ok(())` if catalog loaded successfully `Err(CatalogError::CatalogNotFound)` if catalog doesn't exist `Err(CatalogError)` if load operation fails

(&mut self, catalog_name: &str)

Source from the content-addressed store, hash-verified

228 /// * `Err(CatalogError::CatalogNotFound)` if catalog doesn't exist
229 /// * `Err(CatalogError)` if load operation fails
230 pub fn load_catalog(&mut self, catalog_name: &str) -> CatalogResult<()> {
231 if !self.registry.has_catalog(catalog_name) {
232 return Err(CatalogError::CatalogNotFound(catalog_name.to_string()));
233 }
234
235 // TODO: Implement catalog-specific storage methods in StorageManager
236 // For now, this is a placeholder for the storage integration
237 log::debug!("Loading catalog '{}'", catalog_name);
238
239 Ok(())
240 }
241
242 /// Get the number of registered catalogs
243 ///

Callers

nothing calls this directly

Calls 1

has_catalogMethod · 0.45

Tested by

no test coverage detected