| 1 | export * from "./D1.ts"; |
| 2 | |
| 3 | // The tagged errors drizzle's effect drivers fail with — re-exported so |
| 4 | // consumers can reference them without reaching into drizzle-orm |
| 5 | // internals. (`Effect.catchTag` needs only the tag string; these are for |
| 6 | // instanceof checks, schemas, and annotations.) |
| 7 | export { |
| 8 | EffectDrizzleError, |
| 9 | EffectDrizzleQueryError, |
| 10 | EffectTransactionRollbackError, |
| 11 | MigratorInitError, |
| 12 | } from "drizzle-orm/effect-core"; |
| 13 | export * from "./Providers.ts"; |
| 14 | export * from "./Schema.ts"; |
| 15 | // MySQL and Postgres are deliberately NOT re-exported here: their drivers |
| 16 | // (`@effect/sql-mysql2`/`mysql2`, `@effect/sql-pg`/`pg`) are optional peer |
| 17 | // dependencies, and keeping them out of the barrel keeps them out of every |
| 18 | // non-user's module graph. Import them via their subpaths instead: |
| 19 | // `alchemy/Drizzle/MySQL`, `alchemy/Drizzle/Postgres`. |