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

Function parse_order_by_expr

src/cypher/cypher.c:1720–1728  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1718
1719/* Parse ORDER BY expression into buf. Returns buf. */
1720static char *parse_order_by_expr(parser_t *p, char *buf, size_t buf_sz) {
1721 buf[0] = '\0';
1722 if (is_aggregate_tok(peek(p)->type)) {
1723 parse_order_by_agg(p, buf, buf_sz);
1724 } else {
1725 parse_order_by_var(p, buf, buf_sz);
1726 }
1727 return buf;
1728}
1729
1730/* Parse the full comma-separated ORDER BY key list (#1334). Consuming only the
1731 * first key left ", key2 ... LIMIT n" unparsed, which silently dropped the

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