Convenience wrapper around [`fold_constant`] using the default registry.
(expr: &SqlExpr)
| 38 | |
| 39 | /// Convenience wrapper around [`fold_constant`] using the default registry. |
| 40 | pub 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, |
no test coverage detected