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

Function ss_text

tests/test_store_scope.c:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 &&
39 sqlite3_step(q)==SQLITE_ROW && ss_eq((const char *)sqlite3_column_text(q,0),want) &&
40 sqlite3_step(q)==SQLITE_DONE;
41 if (q && sqlite3_finalize(q)!=SQLITE_OK) ok=false;
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;

Callers 2

ss_file_openFunction · 0.85
test_store_scope.cFile · 0.85

Calls 2

cbm_store_get_dbFunction · 0.85
ss_eqFunction · 0.85

Tested by

no test coverage detected