| 1 | // Generated by alchemy prisma generate. |
| 2 | import type { Contract } from "./contract.d.ts"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type * as Redacted from "effect/Redacted"; |
| 5 | import { Postgres, type PostgresConfig } from "alchemy/Prisma/ORM/Postgres"; |
| 6 | import { contractJson } from "./runtime.ts"; |
| 7 | export const makeDatabase = <E = never, R = never>( |
| 8 | connectionString: Effect.Effect<Redacted.Redacted<string>, E, R>, |
| 9 | options: Omit<PostgresConfig<Contract>, "contract" | "contractJson"> = {}, |
| 10 | ) => Postgres<Contract, E, R>(connectionString, { ...options, contractJson }); |