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

Function cypher_get_col

tests/test_cypher.c:1895–1901  ·  view source on GitHub ↗

Helper: find a column value in a cypher result row */

Source from the content-addressed store, hash-verified

1893
1894/* Helper: find a column value in a cypher result row */
1895static const char *cypher_get_col(const cbm_cypher_result_t *r, int row, const char *col) {
1896 for (int c = 0; c < r->col_count; c++) {
1897 if (strcmp(r->columns[c], col) == 0)
1898 return r->rows[row][c];
1899 }
1900 return NULL;
1901}
1902
1903/* Helper: check if any row has a column matching a value */
1904static bool cypher_has_row_with(const cbm_cypher_result_t *r, const char *col, const char *val) {

Callers 2

test_cypher.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected