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

Function tsc_cleanup_db

tests/test_store_checkpoint.c:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected