sql::parsers::utils

Function parser_expr_to_scalar_value

source
pub fn parser_expr_to_scalar_value(expr: Expr) -> Result<ScalarValue>
Expand description

Convert a parser expression to a scalar value. This function will try the best to resolve and reduce constants. Exprs like 1 + 1 or now() can be handled properly.