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

Function ecell_url_path

internal/cbm/sqlite_writer.c:1654–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1652 safe_str(e->local_name), e->id, out_len);
1653}
1654static uint8_t *ecell_url_path(const CBMDumpEdge *e, int *out_len) {
1655 const char *url = (e->url_path && e->url_path[0] != '\0') ? e->url_path : NULL;
1656 RecordBuilder r;
1657 rec_init(&r);
1658 rec_add_text(&r, e->project);
1659 if (url) {
1660 rec_add_text(&r, url);
1661 } else {
1662 rec_add_null(&r);
1663 }
1664 rec_add_int(&r, e->id);
1665 uint8_t *cell = rec_finalize_index_cell(&r, out_len);
1666 rec_free(&r);
1667 return cell;
1668}
1669
1670/* Build an edge index from a pre-sorted permutation using a cell builder callback. */
1671static uint32_t build_edge_index_sorted(FILE *fp, uint32_t *next_page, CBMDumpEdge *edges,

Callers

nothing calls this directly

Calls 6

rec_initFunction · 0.85
rec_add_textFunction · 0.85
rec_add_nullFunction · 0.85
rec_add_intFunction · 0.85
rec_finalize_index_cellFunction · 0.85
rec_freeFunction · 0.85

Tested by

no test coverage detected