Helper: find a column value in a cypher result row */
| 2167 | |
| 2168 | /* Helper: find a column value in a cypher result row */ |
| 2169 | static const char *cypher_get_col(const cbm_cypher_result_t *r, int row, const char *col) { |
| 2170 | for (int c = 0; c < r->col_count; c++) { |
| 2171 | if (strcmp(r->columns[c], col) == 0) |
| 2172 | return r->rows[row][c]; |
| 2173 | } |
| 2174 | return NULL; |
| 2175 | } |
| 2176 | |
| 2177 | /* Helper: check if any row has a column matching a value */ |
| 2178 | static bool cypher_has_row_with(const cbm_cypher_result_t *r, const char *col, const char *val) { |
no outgoing calls
no test coverage detected