| 24 | #include <stdatomic.h> |
| 25 | |
| 26 | static 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 | |
| 35 | static int tsc_raw_journal_mode(const char *db_path, char *mode, size_t mode_size) { |
| 36 | sqlite3 *db = NULL; |
no outgoing calls
no test coverage detected