Set current graph using unified session management
(
&self,
graph_expr: crate::ast::GraphExpression,
)
| 653 | |
| 654 | /// Set current graph using unified session management |
| 655 | pub fn set_current_graph( |
| 656 | &self, |
| 657 | graph_expr: crate::ast::GraphExpression, |
| 658 | ) -> Result<(), ExecutionError> { |
| 659 | // Extract graph name from expression |
| 660 | let graph_name = match &graph_expr { |
| 661 | GraphExpression::Reference(catalog_path) => catalog_path |
| 662 | .segments |
| 663 | .last() |
| 664 | .ok_or_else(|| ExecutionError::RuntimeError("Invalid catalog path".to_string()))? |
| 665 | .clone(), |
| 666 | _ => { |
| 667 | return Err(ExecutionError::RuntimeError( |
| 668 | "Only direct graph references are supported for setting current graph" |
| 669 | .to_string(), |
| 670 | )); |
| 671 | } |
| 672 | }; |
| 673 | |
| 674 | // For now, this method is used without session context |
| 675 | // In a full implementation, this should work with actual session IDs |
| 676 | log::debug!("set_current_graph: Would set graph {} (unified session management not fully integrated)", graph_name); |
| 677 | Ok(()) |
| 678 | } |
| 679 | |
| 680 | /// Log an operation to the WAL if there's an active transaction |
| 681 | pub fn log_operation_to_wal( |
no test coverage detected