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

Function first_expr

nodedb-sql/src/aggregate_walk.rs:232–237  ·  view source on GitHub ↗
(sql: &str)

Source from the content-addressed store, hash-verified

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()

Calls 2

first_select_projectionFunction · 0.85
nextMethod · 0.45