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

Function project_star_var

src/cypher/cypher.c:4193–4207  ·  view source on GitHub ↗

Project one variable's 4 columns for RETURN * */

Source from the content-addressed store, hash-verified

4191
4192/* Project one variable's 4 columns for RETURN * */
4193static void project_star_var(binding_t *b, const char *var, const char **vals) {
4194 cbm_edge_t *edge = binding_get_edge(b, var);
4195 if (edge) {
4196 vals[0] = edge_prop(edge, "type");
4197 vals[SKIP_ONE] = "";
4198 vals[PAIR_LEN] = "";
4199 vals[CYP_TRIPLE] = "";
4200 return;
4201 }
4202 cbm_node_t *n = binding_get(b, var);
4203 vals[0] = n && n->name ? n->name : "";
4204 vals[SKIP_ONE] = n && n->qualified_name ? n->qualified_name : "";
4205 vals[PAIR_LEN] = n && n->label ? n->label : "";
4206 vals[CYP_TRIPLE] = n && n->file_path ? n->file_path : "";
4207}
4208
4209/* Project one binding row for RETURN * */
4210static void project_star_row(binding_t *b, const char **vars, int vc, const char **vals) {

Callers 1

project_star_rowFunction · 0.85

Calls 3

binding_get_edgeFunction · 0.85
edge_propFunction · 0.85
binding_getFunction · 0.85

Tested by

no test coverage detected