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

Method load_catalog

graphlite/src/storage/storage_manager.rs:431–444  ·  view source on GitHub ↗

Load catalog from persistent storage

(&self, catalog_manager: &mut CatalogManager)

Source from the content-addressed store, hash-verified

429
430 /// Load catalog from persistent storage
431 pub fn load_catalog(&self, catalog_manager: &mut CatalogManager) -> Result<(), StorageError> {
432 if let Some(persistent_store) = &self.persistent_store {
433 persistent_store.load_catalog(catalog_manager).map_err(|e| {
434 StorageError::PersistenceError(format!("Failed to load catalog: {}", e))
435 })
436 } else if let Some(memory_store) = &self.memory_store {
437 memory_store.load_catalog(catalog_manager).map_err(|e| {
438 StorageError::PersistenceError(format!("Failed to load catalog: {}", e))
439 })
440 } else {
441 debug!("No storage backend available for loading catalog");
442 Ok(())
443 }
444 }
445
446 /// Get access to the cache manager (for compatibility)
447 pub fn cache(&self) -> Arc<MultiGraphManager> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected