Get a graph by name (readonly)
(&self, name: &str)
| 642 | |
| 643 | /// Get a graph by name (readonly) |
| 644 | pub fn get_graph(&self, name: &str) -> Result<Arc<GraphCache>, ExecutionError> { |
| 645 | match self.storage.get_graph(name)? { |
| 646 | Some(graph) => Ok(Arc::new(graph)), |
| 647 | None => Err(ExecutionError::StorageError(format!( |
| 648 | "Graph not found: {}", |
| 649 | name |
| 650 | ))), |
| 651 | } |
| 652 | } |
| 653 | |
| 654 | /// Set current graph using unified session management |
| 655 | pub fn set_current_graph( |
no test coverage detected