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

Function is_aggregate_func

src/cypher/cypher.c:4342–4346  ·  view source on GitHub ↗

Check if a function name is an aggregate */

Source from the content-addressed store, hash-verified

4340
4341/* Check if a function name is an aggregate */
4342static bool is_aggregate_func(const char *func) {
4343 return func &&
4344 (strcmp(func, "COUNT") == 0 || strcmp(func, "SUM") == 0 || strcmp(func, "AVG") == 0 ||
4345 strcmp(func, "MIN") == 0 || strcmp(func, "MAX") == 0 || strcmp(func, "COLLECT") == 0);
4346}
4347
4348/* Grow a string list for one more entry at `idx`: the capacity doubles at
4349 * every power of two, so n appends cost O(n) copying, not O(n^2). */

Callers 9

with_agg_build_keyFunction · 0.85
with_agg_find_or_createFunction · 0.85
with_agg_accumulateFunction · 0.85
with_sink_initFunction · 0.85
with_agg_rowsFunction · 0.85
ret_agg_accumulateFunction · 0.85
ret_agg_build_keyFunction · 0.85
ret_agg_emit_rowFunction · 0.85
ret_sink_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected