| 1 | import 'dotenv/config' |
| 2 | import { drizzle } from |
| 3 | import { env } |
| 4 | import * as schema |
| 5 | |
| 6 | export const db = |
| 7 | schema, |
| 8 | }) |
| 9 | |
| 10 | // Accepts either the root `db` or a transaction handle from `db.transaction`. |
| 11 | // Use this for helpers that need to run inside an outer caller's transaction. |
| 12 | export type DbOrTx |
| 13 | | typeof db |
| 14 | | Parameters |