| 22 | #include <unistd.h> |
| 23 | |
| 24 | static 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 | |
| 33 | static int tsc_raw_journal_mode(const char *db_path, char *mode, size_t mode_size) { |
| 34 | sqlite3 *db = NULL; |
no outgoing calls
no test coverage detected