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

Function gd_check

src/store/store_graph_digest.c:164–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static bool gd_check(gd_context_t *g) {
165 if (g->scope) {
166 int status = cbm_store_read_scope_check(g->scope);
167 if (status != CBM_STORE_OK) {
168 return gd_fail(g, status == CBM_STORE_CANCELLED ? CBM_STORE_GRAPH_DIGEST_CANCELLED
169 : CBM_STORE_GRAPH_DIGEST_ERROR);
170 }
171 }
172 return g->status == CBM_STORE_GRAPH_DIGEST_OK;
173}
174
175static void gd_sql_failure(gd_context_t *g, int rc) {
176 if (rc == SQLITE_INTERRUPT) {

Callers 8

gd_sql_failureFunction · 0.85
gd_prepareFunction · 0.85
gd_stepFunction · 0.85
gd_finalizeFunction · 0.85
gd_bytesFunction · 0.85
gd_table_rowsFunction · 0.85
gd_project_argumentFunction · 0.85
cbm_store_graph_digestFunction · 0.85

Calls 2

gd_failFunction · 0.85

Tested by

no test coverage detected