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

Function sqlite_artifacts_absent

tests/test_pipeline.c:10036–10052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10034}
10035
10036static bool sqlite_artifacts_absent(const char *db_path) {
10037 struct stat st;
10038 if (!db_path || !db_path[0] || stat(db_path, &st) == 0) {
10039 return false;
10040 }
10041 char sidecar[832];
10042 snprintf(sidecar, sizeof(sidecar), "%s-wal", db_path);
10043 if (stat(sidecar, &st) == 0) {
10044 return false;
10045 }
10046 snprintf(sidecar, sizeof(sidecar), "%s-shm", db_path);
10047 if (stat(sidecar, &st) == 0) {
10048 return false;
10049 }
10050 snprintf(sidecar, sizeof(sidecar), "%s-journal", db_path);
10051 return stat(sidecar, &st) != 0;
10052}
10053
10054static bool write_go_file(const char *dir, const char *name, const char *source) {
10055 char path[512];

Callers 1

test_pipeline.cFile · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected