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

Function ss_integer

tests/test_store_scope.c:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 return sqlite3_exec(cbm_store_get_db(s), sql, NULL, NULL, NULL);
28}
29static bool ss_integer(cbm_store_t *s, const char *sql, int64_t want) {
30 sqlite3_stmt *q = NULL;
31 bool ok = sqlite3_prepare_v2(cbm_store_get_db(s), sql, -1, &q, NULL)==SQLITE_OK &&
32 sqlite3_step(q)==SQLITE_ROW && sqlite3_column_int64(q,0)==want && sqlite3_step(q)==SQLITE_DONE;
33 if (q && sqlite3_finalize(q)!=SQLITE_OK) ok=false;
34 return ok;
35}
36static bool ss_text(cbm_store_t *s, const char *sql, const char *want) {
37 sqlite3_stmt *q = NULL;
38 bool ok = sqlite3_prepare_v2(cbm_store_get_db(s), sql, -1, &q, NULL)==SQLITE_OK &&

Callers 2

test_store_scope.cFile · 0.85
ss_sweep_runFunction · 0.85

Calls 1

cbm_store_get_dbFunction · 0.85

Tested by

no test coverage detected