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

Function convert_expr

nodedb-sql/src/resolver/expr/convert.rs:39–41  ·  view source on GitHub ↗

Convert a sqlparser `Expr` to our `SqlExpr`.

(expr: &Expr)

Source from the content-addressed store, hash-verified

37
38/// Convert a sqlparser `Expr` to our `SqlExpr`.
39pub fn convert_expr(expr: &Expr) -> Result<SqlExpr> {
40 convert_expr_depth(expr, &mut 0)
41}
42
43/// Internal recursive helper that carries a depth counter to enforce
44/// `MAX_CONVERT_DEPTH` and prevent stack overflow on malformed ASTs.

Callers 15

parse_expr_stringFunction · 0.85
extract_recursive_infoFunction · 0.85
expand_group_byFunction · 0.85
convert_sort_keysFunction · 0.85
classify_on_conflictFunction · 0.85
fold_constant_valueFunction · 0.85
convert_merge_actionFunction · 0.85
convert_assignmentsFunction · 0.85
convert_window_specFunction · 0.85
plan_lateral_top_kFunction · 0.85
extract_join_constraintFunction · 0.85

Calls 1

convert_expr_depthFunction · 0.85