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

Function ss_node

tests/test_store_scope.c:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 return ok;
43}
44static int64_t ss_node(cbm_store_t *s, const char *name, int line) {
45 char qn[128]; int n=snprintf(qn,sizeof(qn),SS_PROJECT ".%s",name);
46 if (n<=0 || (size_t)n>=sizeof(qn)) return -1;
47 cbm_node_t row={.project=SS_PROJECT,.label="Function",.name=name,.qualified_name=qn,
48 .file_path="unit.c",.start_line=line,.end_line=line,.properties_json="{}"};
49 return cbm_store_upsert_node(s,&row);
50}
51static bool ss_edge(cbm_store_t *s,int64_t from,int64_t to,const char *type) {
52 cbm_edge_t e={.project=SS_PROJECT,.source_id=from,.target_id=to,.type=type,.properties_json="{}"};
53 return cbm_store_insert_edge(s,&e)>0;

Callers 3

ss_seedFunction · 0.85
test_store_scope.cFile · 0.85
ss_sweep_runFunction · 0.85

Calls 1

cbm_store_upsert_nodeFunction · 0.85

Tested by

no test coverage detected