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

Function revision

src/cli/runtime_settings.c:579–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579static void revision(sqlite3 *db, char out[32]) {
580 sqlite3_stmt *statement = NULL;
581 out[0] = '\0';
582 if (sqlite3_prepare_v2(db, "SELECT revision FROM runtime_settings_revision WHERE id=1", -1,
583 &statement, NULL) == SQLITE_OK &&
584 sqlite3_step(statement) == SQLITE_ROW)
585 (void)snprintf(out, 32, "%lld", (long long)sqlite3_column_int64(statement, 0));
586 sqlite3_finalize(statement);
587}
588
589static char *snapshot(sqlite3 *db, const char *cache) {
590 yyjson_mut_doc *doc = yyjson_mut_doc_new(NULL);

Callers 2

snapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected