1// Generated by alchemy prisma generate.
2import type { Contract } from "./contract.d.ts";
3import type * as Effect from "effect/Effect";
4import type * as Redacted from "effect/Redacted";
5import { Postgres, type PostgresConfig } from "alchemy/Prisma/ORM/Postgres";
6import { contractJson } from "./runtime.ts";
7export 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 });