(sql: &str)
| 230 | } |
| 231 | |
| 232 | fn first_expr(sql: &str) -> ast::Expr { |
| 233 | match first_select_projection(sql).into_iter().next().unwrap() { |
| 234 | ast::SelectItem::UnnamedExpr(e) | ast::SelectItem::ExprWithAlias { expr: e, .. } => e, |
| 235 | _ => panic!(), |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | fn functions() -> FunctionRegistry { |
| 240 | FunctionRegistry::new() |