Add database type.
This commit is contained in:
parent
22c782c3ec
commit
2c9b855d2a
@ -6,3 +6,4 @@ import { drizzle } from "drizzle-orm/bun-sqlite";
|
|||||||
|
|
||||||
const sqlite = new Database("sqlite.db");
|
const sqlite = new Database("sqlite.db");
|
||||||
export const db = drizzle({ client: sqlite, schema: { ...schema1, ...schema2, ...schema3 } });
|
export const db = drizzle({ client: sqlite, schema: { ...schema1, ...schema2, ...schema3 } });
|
||||||
|
export type DB = typeof db;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user