aboutsummaryrefslogtreecommitdiffstats
path: root/backend/src/db.ts
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-28 17:26:46 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-28 17:43:56 -0700
commite4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch)
tree06284a538a6008eca75051399e47db4e5d50301c /backend/src/db.ts
initial commit: scaffolding
Diffstat (limited to 'backend/src/db.ts')
-rw-r--r--backend/src/db.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/src/db.ts b/backend/src/db.ts
new file mode 100644
index 0000000..032e68d
--- /dev/null
+++ b/backend/src/db.ts
@@ -0,0 +1,9 @@
+import sqlite3 from 'sqlite3';
+import { open } from 'sqlite';
+
+export const connectDB = async () => {
+ return open({
+ filename: './database.sqlite',
+ driver: sqlite3.Database
+ });
+};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage