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

Function sqlite_artifacts_absent

tests/test_pipeline.c:9813–9829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9811}
9812
9813static bool sqlite_artifacts_absent(const char *db_path) {
9814 struct stat st;
9815 if (!db_path || !db_path[0] || stat(db_path, &st) == 0) {
9816 return false;
9817 }
9818 char sidecar[832];
9819 snprintf(sidecar, sizeof(sidecar), "%s-wal", db_path);
9820 if (stat(sidecar, &st) == 0) {
9821 return false;
9822 }
9823 snprintf(sidecar, sizeof(sidecar), "%s-shm", db_path);
9824 if (stat(sidecar, &st) == 0) {
9825 return false;
9826 }
9827 snprintf(sidecar, sizeof(sidecar), "%s-journal", db_path);
9828 return stat(sidecar, &st) != 0;
9829}
9830
9831static bool write_go_file(const char *dir, const char *name, const char *source) {
9832 char path[512];

Callers 1

test_pipeline.cFile · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected