renamed folder "app" to "src"
This commit is contained in:
13
src/sql.ts
Normal file
13
src/sql.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Database } from "bun:sqlite";
|
||||
import * as path from "node:path";
|
||||
import { Event } from "./component/event";
|
||||
export const db_filename = "77th_eventntfy.db";
|
||||
export const db_filepath = path.join("data", "db", db_filename);
|
||||
console.log(db_filepath);
|
||||
// const db_file = Bun.file(db_filepath);
|
||||
|
||||
export const db = new Database(db_filepath);
|
||||
|
||||
export function init () {
|
||||
Event.createTable(db);
|
||||
}
|
||||
Reference in New Issue
Block a user