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

Method get_graph

graphlite/src/exec/executor.rs:644–652  ·  view source on GitHub ↗

Get a graph by name (readonly)

(&self, name: &str)

Source from the content-addressed store, hash-verified

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(

Callers 13

lazy_load_graphMethod · 0.45
execute_statementMethod · 0.45
validate_schemaMethod · 0.45
execute_ddl_operationMethod · 0.45
apply_undo_operationMethod · 0.45
execute_unified_flowMethod · 0.45

Calls 1

StorageErrorEnum · 0.85

Tested by

no test coverage detected