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

Function scan_edge

src/store/store.c:4009–4016  ·  view source on GitHub ↗

Scan an edge from current row of stmt. */

Source from the content-addressed store, hash-verified

4007
4008/* Scan an edge from current row of stmt. */
4009static 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. */
4019static int find_edges_generic(cbm_store_t *s, sqlite3_stmt **slot, const char *sql,

Callers 2

find_edges_genericFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected