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

Function project_star_var

src/cypher/cypher.c:5061–5075  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

5059
5060/* Project one variable's 4 columns for RETURN * */
5061static void project_star_var(binding_t *b, const char *var, const char **vals) {
5062 cbm_edge_t *edge = binding_get_edge(b, var);
5063 if (edge) {
5064 vals[0] = edge_prop(edge, "type");
5065 vals[SKIP_ONE] = "";
5066 vals[PAIR_LEN] = "";
5067 vals[CYP_TRIPLE] = "";
5068 return;
5069 }
5070 cbm_node_t *n = binding_get(b, var);
5071 vals[0] = n && n->name ? n->name : "";
5072 vals[SKIP_ONE] = n && n->qualified_name ? n->qualified_name : "";
5073 vals[PAIR_LEN] = n && n->label ? n->label : "";
5074 vals[CYP_TRIPLE] = n && n->file_path ? n->file_path : "";
5075}
5076
5077/* Project one binding row for RETURN * */
5078static 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