@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 26 lines 879 Bytes
Raw
1 import { Database } from "./Database.ts";
2
3 /**
4 * Product-shaped convenience alias for {@link Database}.
5 *
6 * `Prisma.Postgres(...)` and `Prisma.Database(...)` use the same underlying
7 * Prisma Postgres resource provider. Prefer `Postgres` when you want the code
8 * to read like the Prisma product name, and `Database` when you want to mirror
9 * the Management API route names. Like `Database`, this standalone resource
10 * cannot be the project's default database; use `Prisma.Project` to own the
11 * default.
12 *
13 * **Example:** Example
14 * ```typescript
15 * const project = yield* Prisma.Project("app", { createDatabase: false });
16 * const postgres = yield* Prisma.Postgres("db", {
17 * project,
18 * region: "us-east-1",
19 * });
20 * ```
21 *
22 * @resource
23 * @product Postgres
24 */
25 export const Postgres = Database;
26 export type { DatabaseProps as PostgresProps } from "./Database.ts";