Scan an edge from current row of stmt. */
| 4007 | |
| 4008 | /* Scan an edge from current row of stmt. */ |
| 4009 | static void scan_edge(sqlite3_stmt *stmt, cbm_edge_t *e) { |
| 4010 | e->id = sqlite3_column_int64(stmt, 0); |
| 4011 | e->project = heap_strdup((const char *)sqlite3_column_text(stmt, SKIP_ONE)); |
| 4012 | e->source_id = sqlite3_column_int64(stmt, CBM_SZ_2); |
| 4013 | e->target_id = sqlite3_column_int64(stmt, CBM_SZ_3); |
| 4014 | e->type = heap_strdup((const char *)sqlite3_column_text(stmt, CBM_SZ_4)); |
| 4015 | e->properties_json = heap_strdup((const char *)sqlite3_column_text(stmt, CBM_SZ_5)); |
| 4016 | } |
| 4017 | |
| 4018 | /* Generic: find multiple edges by a filter. */ |
| 4019 | static int find_edges_generic(cbm_store_t *s, sqlite3_stmt **slot, const char *sql, |
no test coverage detected