success pt. 4

This commit is contained in:
2026-02-05 03:46:13 -08:00
parent f4cfca5538
commit b8b99a0f3e
2 changed files with 19 additions and 26 deletions

View File

@@ -7,5 +7,14 @@ import { SQLocalDrizzle } from "sqlocal/drizzle";
const { driver, batchDriver, overwriteDatabaseFile } = new SQLocalDrizzle(
"database.sqlite3",
);
export const db = drizzle(driver, batchDriver);
/**
* Concrete client DB type (SQLocal-backed Drizzle via sqlite-proxy).
* Exported to allow query helpers to accept the specific type without
* creating circular type references.
*/
export type ClientDb = typeof db;
export { overwriteDatabaseFile };