aboutsummaryrefslogtreecommitdiffstats
path: root/server/db/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/db/index.ts')
-rw-r--r--server/db/index.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/db/index.ts b/server/db/index.ts
new file mode 100644
index 0000000..e8d0392
--- /dev/null
+++ b/server/db/index.ts
@@ -0,0 +1,8 @@
+import Database from "better-sqlite3";
+import path from "node:path";
+
+const dbPath = path.join(process.cwd(), "k-heardle.db");
+
+export const db = new Database(dbPath);
+
+db.pragma("foreign_keys = ON");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage