Added Stubs for SQlite Database
This commit is contained in:
parent
ddac609b97
commit
22eacc6bca
0
src/lib/db-utils/Configurations.ts
Normal file
0
src/lib/db-utils/Configurations.ts
Normal file
0
src/lib/db-utils/ExternalSessions.ts
Normal file
0
src/lib/db-utils/ExternalSessions.ts
Normal file
0
src/lib/db-utils/SSLEndpoints.ts
Normal file
0
src/lib/db-utils/SSLEndpoints.ts
Normal file
0
src/lib/db-utils/Users.ts
Normal file
0
src/lib/db-utils/Users.ts
Normal file
@ -1,16 +1,21 @@
|
|||||||
import { DB_PATH } from "$lib/utils/constants";
|
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 static initialized = false
|
||||||
|
|
||||||
private db: Database
|
private __db: Database
|
||||||
|
|
||||||
// UGLY: should be more flexible
|
// UGLY: should be more flexible
|
||||||
constructor() {
|
constructor() {
|
||||||
this.db = SSLSnifferDatabase.initDatabase()
|
this.__db = SSLSnifferApp.initDatabase()
|
||||||
SSLSnifferDatabase.initialized = true
|
SSLSnifferApp.initialized = true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public get db() {
|
||||||
|
return this.__db
|
||||||
}
|
}
|
||||||
|
|
||||||
// This needs to be static as it doesn't need the object
|
// This needs to be static as it doesn't need the object
|
||||||
@ -40,8 +45,4 @@ export class SSLSnifferDatabase {
|
|||||||
this.db.close(forceful)
|
this.db.close(forceful)
|
||||||
}
|
}
|
||||||
|
|
||||||
public executeQuery(query: Statement): any {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user