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

Function with_add_vbinding_var

src/cypher/cypher.c:3595–3602  ·  view source on GitHub ↗

Add a virtual variable binding for one WITH item */

Source from the content-addressed store, hash-verified

3593
3594/* Add a virtual variable binding for one WITH item */
3595static void with_add_vbinding_var(binding_t *vb, const char *alias, const char *val) {
3596 cbm_node_t vn = {.name = heap_strdup(val), .qualified_name = heap_strdup(alias)};
3597 if (vb->var_count < CYP_BUF_16) {
3598 vb->var_names[vb->var_count] = vn.qualified_name;
3599 vb->var_nodes[vb->var_count] = vn;
3600 vb->var_count++;
3601 }
3602}
3603
3604/* Free with_agg_t array */
3605static void with_agg_free(with_agg_t *aggs, int agg_cnt, int item_count) {

Callers 2

execute_with_aggregateFunction · 0.85
execute_with_simpleFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected