success pt. 4
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user