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

Function cleanup_project_db

tests/test_mcp.c:116–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_mcp.cFile · 0.85

Calls 1

cbm_unlinkFunction · 0.85

Tested by

no test coverage detected