| 1 | import * as Redacted from "effect/Redacted"; |
| 2 | |
| 3 | /** |
| 4 | * The shape `Cloudflare.Hyperdrive` and other Postgres consumers accept as an |
| 5 | * origin. Materialized on `Planetscale.PostgresRole` so callers can wire role |
| 6 | * credentials into Hyperdrive directly. |
| 7 | */ |
| 8 | export type PostgresOrigin = { |
| 9 | scheme: "postgres" | "postgresql"; |
| 10 | host: string; |
| 11 | port: number; |
| 12 | database: string; |
| 13 | user: string; |
| 14 | password: Redacted.Redacted<string>; |
| 15 | }; |