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

Function cleanup_project_db

tests/test_mcp.c:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static void cleanup_project_db(const char *cache, const char *project) {
120 if (!cache || !project) {
121 return;
122 }
123
124 char path[CBM_SZ_4K];
125 snprintf(path, sizeof(path), "%s/%s.db", cache, project);
126 cbm_unlink(path);
127 snprintf(path, sizeof(path), "%s/%s.db-wal", cache, project);
128 cbm_unlink(path);
129 snprintf(path, sizeof(path), "%s/%s.db-shm", cache, project);
130 cbm_unlink(path);
131}
132
133#define MCP_MUTATION_GUARD_MAX_EVENTS 16
134

Callers 1

test_mcp.cFile · 0.85

Calls 1

cbm_unlinkFunction · 0.85

Tested by

no test coverage detected