MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / eval_row_exprs

Function eval_row_exprs

nodedb/src/data/executor/handlers/recursive_value.rs:170–175  ·  view source on GitHub ↗

Evaluate a slice of SQL expression strings against a row context. Returns `None` if any expression fails to evaluate.

(
    exprs: &[String],
    ctx: &HashMap<String, nodedb_types::Value>,
)

Source from the content-addressed store, hash-verified

168/// Evaluate a slice of SQL expression strings against a row context.
169/// Returns `None` if any expression fails to evaluate.
170fn eval_row_exprs(
171 exprs: &[String],
172 ctx: &HashMap<String, nodedb_types::Value>,
173) -> Option<Vec<nodedb_types::Value>> {
174 exprs.iter().map(|e| eval_sql_expr(e, ctx)).collect()
175}
176
177/// Evaluate a single SQL expression string with an optional row context.
178fn eval_sql_expr(

Callers 1

Calls 3

eval_sql_exprFunction · 0.85
collectMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected