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

Function resolve_item_alias

src/cypher/cypher.c:3807–3818  ·  view source on GitHub ↗

Resolve the alias or compute a default name for a WITH/RETURN item */

Source from the content-addressed store, hash-verified

3805
3806/* Resolve the alias or compute a default name for a WITH/RETURN item */
3807static const char *resolve_item_alias(const cbm_return_item_t *item, char *name_buf,
3808 size_t buf_sz) {
3809 if (item->alias) {
3810 return item->alias;
3811 }
3812 if (item->property) {
3813 snprintf(name_buf, buf_sz, "%s.%s", item->variable, item->property);
3814 } else {
3815 snprintf(name_buf, buf_sz, "%s", item->variable);
3816 }
3817 return name_buf;
3818}
3819
3820/* ── WITH clause: project bindings through aggregation or rename ── */
3821

Callers 3

execute_with_aggregateFunction · 0.85
execute_with_simpleFunction · 0.85
with_proj_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected