Create a new execution context with a session ID
(session_id: String, storage_manager: Arc<StorageManager>)
| 73 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected