aboutsummaryrefslogtreecommitdiffstats
path: root/backend/src/db.ts
diff options
context:
space:
mode:
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