diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-28 17:26:46 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-28 17:43:56 -0700 |
| commit | e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch) | |
| tree | 06284a538a6008eca75051399e47db4e5d50301c /backend/src/db.ts | |
initial commit: scaffolding
Diffstat (limited to 'backend/src/db.ts')
| -rw-r--r-- | backend/src/db.ts | 9 |
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 + }); +}; |
