aboutsummaryrefslogtreecommitdiff
path: root/cmd/marabot/schema.sql
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-06-20 07:11:40 -0400
committerXe Iaso <me@xeiaso.net>2023-06-20 07:13:10 -0400
commitc13e1feed9b73f045f7baba0efc87aba0de3b2c6 (patch)
tree9d153deaefb3aaff415fa3276f797c1e6e148ac2 /cmd/marabot/schema.sql
parent7dca3ad008041edf9049b5554c23a3e7d6163fab (diff)
downloadx-c13e1feed9b73f045f7baba0efc87aba0de3b2c6.tar.xz
x-c13e1feed9b73f045f7baba0efc87aba0de3b2c6.zip
cmd/marabot: use transactions to be compatible with litestream
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/marabot/schema.sql')
-rw-r--r--cmd/marabot/schema.sql5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/marabot/schema.sql b/cmd/marabot/schema.sql
index f38537f..9ddc789 100644
--- a/cmd/marabot/schema.sql
+++ b/cmd/marabot/schema.sql
@@ -1,4 +1,7 @@
-PRAGMA journal_mode=WAL;
+PRAGMA journal_mode = WAL;
+PRAGMA synchronous = NORMAL;
+PRAGMA wal_autocheckpoint = 0;
+PRAGMA busy_timeout = 5000;
CREATE TABLE IF NOT EXISTS discord_roles (
id TEXT PRIMARY KEY,