pub async fn execute_recursive_value(
cte_name: &str,
columns: &[String],
init_exprs: &[String],
step_exprs: &[String],
condition: Option<&str>,
max_depth: usize,
distinct: bool,
) -> Result<QueryResult, LiteError>Expand description
Iterative expression evaluation for value-generating recursive CTEs.
Evaluates init_exprs once to produce the anchor row, then iterates:
bind the previous row as column variables, evaluate condition (stop when
false), evaluate step_exprs to get the next row. Stops at max_depth
iterations (returns a typed error when exceeded) or when condition is
false. Deduplicates if distinct is true.