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

Function gd_finalize

src/store/store_graph_digest.c:208–220  ·  view source on GitHub ↗

Destruction is unconditional, including after the scope has been poisoned. */

Source from the content-addressed store, hash-verified

206
207/* Destruction is unconditional, including after the scope has been poisoned. */
208static bool gd_finalize(gd_context_t *g) {
209 if (g->stmt) {
210 (void)gd_check(g);
211 sqlite3_stmt *stmt = g->stmt;
212 g->stmt = NULL;
213 int rc = sqlite3_finalize(stmt);
214 if (rc != SQLITE_OK) {
215 gd_sql_failure(g, rc);
216 }
217 (void)gd_check(g);
218 }
219 return g->status == CBM_STORE_GRAPH_DIGEST_OK;
220}
221
222static bool gd_bind_name(gd_context_t *g, const char *name) {
223 int rc = sqlite3_bind_text(g->stmt, 1, name, -1, SQLITE_STATIC);

Callers 7

gd_encodingFunction · 0.85
gd_table_kindsFunction · 0.85
gd_columnsFunction · 0.85
gd_projectFunction · 0.85
gd_table_headerFunction · 0.85
gd_table_rowsFunction · 0.85
cbm_store_graph_digestFunction · 0.85

Calls 2

gd_checkFunction · 0.85
gd_sql_failureFunction · 0.85

Tested by

no test coverage detected