From 4078b4fe2d46f3b5e58a8fdcf218550d446d9691 Mon Sep 17 00:00:00 2001
From: EuAndreh <eu@euandre.org>
Date: Mon, 1 Dec 2025 16:45:28 -0300
Subject: m

---
 etc/init.sql | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 etc/init.sql

(limited to 'etc/init.sql')

diff --git a/etc/init.sql b/etc/init.sql
new file mode 100644
index 0000000..5c5ef49
--- /dev/null
+++ b/etc/init.sql
@@ -0,0 +1,15 @@
+PRAGMA foreign_keys = ON;
+PRAGMA journal_mode = WAL;
+PRAGMA synchronous = NORMAL;
+PRAGMA mmap_size = 134217728; -- 128 megabytes
+PRAGMA journal_size_limit = 67108864; -- 64 megabytes
+PRAGMA cache_size = 2000;
+
+-- datomic schema
+CREATE TABLE IF NOT EXISTS datomic_kvs (
+	id TEXT NOT NULL,
+	rev INTEGER,
+	map TEXT,
+	val BYTEA,
+	CONSTRAINT pk_id PRIMARY KEY (id)
+);
-- 
cgit v1.2.3

