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

Function fold_constant_value

nodedb-sql/src/planner/dml_helpers.rs:56–61  ·  view source on GitHub ↗
(expr: &ast::Expr)

Source from the content-addressed store, hash-verified

54}
55
56fn fold_constant_value(expr: &ast::Expr) -> Result<SqlValue> {
57 let sql_expr = crate::resolver::expr::convert_expr(expr)?;
58 super::const_fold::fold_constant_default(&sql_expr).ok_or_else(|| SqlError::Unsupported {
59 detail: format!("value expression: {expr}"),
60 })
61}
62
63/// Spatial constructors that synthesise a GeoJSON string literal directly
64/// in value position (rather than going through the registered scalar

Callers 1

expr_to_sql_valueFunction · 0.85

Calls 2

convert_exprFunction · 0.85
fold_constant_defaultFunction · 0.85

Tested by

no test coverage detected