@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, 04:45 UTC

main
ts 23 lines 573 Bytes
Raw
1 import * as Prisma from "@alchemy.run/prisma";
2 import * as Effect from "effect/Effect";
3
4 export const Project = Prisma.Project("Project", {
5 createDatabase: false,
6 region: "eu-west-3",
7 });
8
9 export const Postgres = Prisma.Postgres(
10 "Postgres",
11 Effect.gen(function* () {
12 const project = yield* Project;
13 return { project, region: "eu-west-3" as const, branchGitName: "main" };
14 }),
15 );
16
17 export const Connection = Prisma.Connection(
18 "Connection",
19 Effect.gen(function* () {
20 const database = yield* Postgres;
21 return { database, name: "api" };
22 }),
23 );