summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-01-04 16:31:37 -0500
committerJune McEnroe <june@causal.agency>2020-01-04 16:31:37 -0500
commitb38db63193ffa8ca4b686ff7dd82257e436b23d8 (patch)
treea4eb91c0ef47212360f0506906bec6ccc3b67503
parentAdd -N option to litterbox (diff)
downloadlitterbox-b38db63193ffa8ca4b686ff7dd82257e436b23d8.tar.gz
litterbox-b38db63193ffa8ca4b686ff7dd82257e436b23d8.zip
Enable SQLite WAL
-rw-r--r--database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/database.h b/database.h
index 26ae57e..a1370b5 100644
--- a/database.h
+++ b/database.h
@@ -87,6 +87,7 @@ static inline void dbOpen(char *path, int flags) {
 	if (error) errx(EX_NOINPUT, "%s: %s", path, sqlite3_errmsg(db));
 
 	sqlite3_busy_timeout(db, 1000);
+	dbExec(SQL(PRAGMA journal_mode = WAL;));
 	dbExec(SQL(PRAGMA foreign_keys = true;));
 }
 
itle='2021-04-18 17:20:54 -0400'>2021-04-18Import LibreSSL 3.3.2June McEnroe 2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe Some compat sources (getentropy_linux.c for example) require OpenSSL. Reported by Robert Scheck. 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe