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

Method execute_next_statement

graphlite/src/exec/executor.rs:8603–8631  ·  view source on GitHub ↗

ROADMAP v0.5.0 - NEXT statement execution for path queries

(
        &self,
        next_stmt: &NextStatement,
        context: &mut ExecutionContext,
        graph_expr: Option<&GraphExpression>,
    )

Source from the content-addressed store, hash-verified

8601 /// Internal method for next statements
8602 #[allow(dead_code)] // ROADMAP v0.5.0 - NEXT statement execution for path queries
8603 fn execute_next_statement(
8604 &self,
8605 next_stmt: &NextStatement,
8606 context: &mut ExecutionContext,
8607 graph_expr: Option<&GraphExpression>,
8608 ) -> Result<QueryResult, ExecutionError> {
8609 match &next_stmt.target_statement {
8610 Some(target) => {
8611 // Execute the target statement using the provided context to maintain variable scope
8612 self.execute_statement(target.as_ref(), context, graph_expr, None)
8613 }
8614 None => {
8615 // NEXT without target - just continue execution
8616 Ok(QueryResult {
8617 variables: vec!["status".to_string()],
8618 rows: vec![{
8619 let mut values = std::collections::HashMap::new();
8620 values.insert("status".to_string(), Value::String("continued".to_string()));
8621 Row::from_values(values)
8622 }],
8623 rows_affected: 1,
8624 session_result: None,
8625 warnings: Vec::new(),
8626
8627 execution_time_ms: 0,
8628 })
8629 }
8630 }
8631 }
8632
8633 /// Execute AT location statement for procedure context
8634 /// Internal method for at location statements

Callers

nothing calls this directly

Calls 1

execute_statementMethod · 0.80

Tested by

no test coverage detected