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

Function project_db_path

src/mcp/mcp.c:1878–1887  ·  view source on GitHub ↗

Returns full .db path for a project: / .db */

Source from the content-addressed store, hash-verified

1876
1877/* Returns full .db path for a project: <cache_dir>/<project>.db */
1878static const char *project_db_path(const char *project, char *buf, size_t bufsz) {
1879 if (!cbm_validate_project_name(project)) {
1880 buf[0] = '\0';
1881 return buf;
1882 }
1883 char dir[CBM_SZ_1K];
1884 cache_dir(dir, sizeof(dir));
1885 snprintf(buf, bufsz, "%s/%s.db", dir, project);
1886 return buf;
1887}
1888
1889/* ── Store resolution ──────────────────────────────────────────── */
1890

Callers 4

resolve_store_internalFunction · 0.85
handle_delete_projectFunction · 0.85
try_artifact_bootstrapFunction · 0.85

Calls 2

cache_dirFunction · 0.85

Tested by

no test coverage detected