Force big queries onto primary db to prevent 40001

This commit is contained in:
Owen
2025-12-18 16:03:15 -05:00
parent 9c21e3da16
commit 6b609bb078
4 changed files with 101 additions and 50 deletions

View File

@@ -20,6 +20,7 @@ function createDb() {
export const db = createDb();
export default db;
export const driver: "pg" | "sqlite" = "sqlite";
export type Transaction = Parameters<
Parameters<(typeof db)["transaction"]>[0]
>[0];