You've already forked KF-MMO-Server
refactored into a node module
This commit is contained in:
11
Database/dbcontroller.ts
Normal file
11
Database/dbcontroller.ts
Normal 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
|
||||
})
|
||||
})()
|
||||
Reference in New Issue
Block a user