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

Function fold_constant_default

nodedb-sql/src/planner/const_fold.rs:40–42  ·  view source on GitHub ↗

Convenience wrapper around [`fold_constant`] using the default registry.

(expr: &SqlExpr)

Source from the content-addressed store, hash-verified

38
39/// Convenience wrapper around [`fold_constant`] using the default registry.
40pub fn fold_constant_default(expr: &SqlExpr) -> Option<SqlValue> {
41 fold_constant(expr, default_registry())
42}
43
44/// Fold a `SqlExpr` to a literal `SqlValue` at plan time, or return
45/// `None` if the expression depends on row/runtime state (column refs,

Callers 3

fold_constant_valueFunction · 0.85
try_const_fold_defaultFunction · 0.85
try_eval_scalar_functionFunction · 0.85

Calls 2

fold_constantFunction · 0.85
default_registryFunction · 0.85

Tested by

no test coverage detected