Added Stubs for SQlite Database

This commit is contained in:
Christian Risi 2025-06-28 17:19:40 +00:00
parent ddac609b97
commit 22eacc6bca
5 changed files with 10 additions and 9 deletions

View File

View File

View File

View File

View File

@ -1,16 +1,21 @@
import { DB_PATH } from "$lib/utils/constants";
import { Database, Statement, Statement } from "bun:sqlite";
import { Database, Statement } from "bun:sqlite";
export class SSLSnifferDatabase {
export class SSLSnifferApp {
private static initialized = false
private db: Database
private __db: Database
// UGLY: should be more flexible
constructor() {
this.db = SSLSnifferDatabase.initDatabase()
SSLSnifferDatabase.initialized = true
this.__db = SSLSnifferApp.initDatabase()
SSLSnifferApp.initialized = true
}
public get db() {
return this.__db
}
// This needs to be static as it doesn't need the object
@ -40,8 +45,4 @@ export class SSLSnifferDatabase {
this.db.close(forceful)
}
public executeQuery(query: Statement): any {
}
}