first commit
This commit is contained in:
commit
0e1ce93def
12 files changed
+1693
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import Database from 'better-sqlite3';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import path from 'node:path';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const dbPath = path.join(__dirname, '..', 'db', 'tachyon.db');
|
||||
|
||||
export const db = new Database(dbPath);
|
||||
db.pragma('journal_mode = WAL');
|
||||
Reference in new issue
Block a user