Load catalog from persistent storage
(&self, catalog_manager: &mut CatalogManager)
| 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> { |
nothing calls this directly
no outgoing calls
no test coverage detected