Define db type

This commit is contained in:
Owen
2026-03-31 14:25:47 -07:00
parent 958bde2090
commit edfeec900d
3 changed files with 7 additions and 10 deletions

View File

@@ -23,7 +23,8 @@ export default db;
export const primaryDb = db;
export type Transaction = Parameters<
Parameters<(typeof db)["transaction"]>[0]
>[0];
>[0];
export const DB_TYPE: "pg" | "sqlite" = "sqlite";
function checkFileExists(filePath: string): boolean {
try {