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

Function sqlite_artifacts_absent

tests/test_pipeline.c:18741–18757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18739}
18740
18741static bool sqlite_artifacts_absent(const char *db_path) {
18742 struct stat st;
18743 if (!db_path || !db_path[0] || stat(db_path, &st) == 0) {
18744 return false;
18745 }
18746 char sidecar[832];
18747 snprintf(sidecar, sizeof(sidecar), "%s-wal", db_path);
18748 if (stat(sidecar, &st) == 0) {
18749 return false;
18750 }
18751 snprintf(sidecar, sizeof(sidecar), "%s-shm", db_path);
18752 if (stat(sidecar, &st) == 0) {
18753 return false;
18754 }
18755 snprintf(sidecar, sizeof(sidecar), "%s-journal", db_path);
18756 return stat(sidecar, &st) != 0;
18757}
18758
18759static bool write_go_file(const char *dir, const char *name, const char *source) {
18760 char path[512];

Callers 1

test_pipeline.cFile · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected