import { Postgres, type PostgresConfig } from "@alchemy.run/prisma/ORM/Postgres";
import type * as Effect from "effect/Effect";
import type * as Redacted from "effect/Redacted";
// Generated by alchemy prisma generate.
import type { Contract } from "./contract.d.ts";
import { contractJson } from "./runtime.ts";
export const makeDatabase = <E = never, R = never>(
connectionString: Effect.Effect<Redacted.Redacted<string>, E, R>,
options: Omit<PostgresConfig<Contract>, "contract" | "contractJson"> = {},
) => Postgres<Contract, E, R>(connectionString, { ...options, contractJson });