refactored into a node module

This commit is contained in:
2025-07-08 20:19:22 +02:00
parent a2ec6f700b
commit 05e254cfcd
46 changed files with 3390 additions and 477 deletions

11
Database/dbcontroller.ts Normal file
View File

@@ -0,0 +1,11 @@
import Database from 'better-sqlite3';
import { open } from 'sqlite'
// this is a top-level await
(async () => {
// open the database
const db = await open({
filename: '/tmp/database.db',
driver: Database
})
})()