@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 10 lines 589 Bytes
Raw
1 import { Postgres, type PostgresConfig } from "@alchemy.run/prisma/ORM/Postgres";
2 import type * as Effect from "effect/Effect";
3 import type * as Redacted from "effect/Redacted";
4 // Generated by alchemy prisma generate.
5 import type { Contract } from "./contract.d.ts";
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 });