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

Method new

graphlite/src/exec/context.rs:75–90  ·  view source on GitHub ↗

Create a new execution context with a session ID

(session_id: String, storage_manager: Arc<StorageManager>)

Source from the content-addressed store, hash-verified

73impl ExecutionContext {
74 /// Create a new execution context with a session ID
75 pub fn new(session_id: String, storage_manager: Arc<StorageManager>) -> Self {
76 Self {
77 session_id,
78 session_provider: None,
79 variables: HashMap::new(),
80 variable_types: HashMap::new(),
81 schema_types: HashMap::new(),
82 current_graph: None,
83 storage_manager: Some(storage_manager),
84 function_registry: None,
85 cache_manager: None,
86 current_user: None,
87 current_transaction: None,
88 warnings: Vec::new(),
89 }
90 }
91
92 /// Set the session provider
93 pub fn with_session_provider(mut self, session_provider: Arc<dyn SessionProvider>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected