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

Function tsc_cleanup_db

tests/test_store_checkpoint.c:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <unistd.h>
23
24static void tsc_cleanup_db(const char *db_path) {
25 char sidecar[512];
26 unlink(db_path);
27 snprintf(sidecar, sizeof(sidecar), "%s-wal", db_path);
28 unlink(sidecar);
29 snprintf(sidecar, sizeof(sidecar), "%s-shm", db_path);
30 unlink(sidecar);
31}
32
33static int tsc_raw_journal_mode(const char *db_path, char *mode, size_t mode_size) {
34 sqlite3 *db = NULL;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected