MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / parse_order_by_expr

Function parse_order_by_expr

src/cypher/cypher.c:1587–1595  ·  view source on GitHub ↗

Parse ORDER BY expression into buf. Returns buf. */

Source from the content-addressed store, hash-verified

1585
1586/* Parse ORDER BY expression into buf. Returns buf. */
1587static char *parse_order_by_expr(parser_t *p, char *buf, size_t buf_sz) {
1588 buf[0] = '\0';
1589 if (is_aggregate_tok(peek(p)->type)) {
1590 parse_order_by_agg(p, buf, buf_sz);
1591 } else {
1592 parse_order_by_var(p, buf, buf_sz);
1593 }
1594 return buf;
1595}
1596
1597static void parse_order_by_clause(parser_t *p, cbm_return_clause_t *r) {
1598 expect(p, TOK_BY);

Callers 1

parse_order_by_clauseFunction · 0.85

Calls 4

is_aggregate_tokFunction · 0.85
peekFunction · 0.85
parse_order_by_aggFunction · 0.85
parse_order_by_varFunction · 0.85

Tested by

no test coverage detected