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

Function resolve_item_alias

src/cypher/cypher.c:3802–3813  ·  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

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

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