Helper: find a column value in a cypher result row */
| 1893 | |
| 1894 | /* Helper: find a column value in a cypher result row */ |
| 1895 | static 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 */ |
| 1904 | 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