PostgresDatabaseOptions
Defined in: packages/db-postgres/src/index.ts:31
Options for creating a Postgres-backed DatabaseAdapter.
url (or connectionString) is the Postgres connection string
(postgres://user:pass@host:5432/db). For managed providers, see the
deployment guide for per-provider recipes (RDS CA bundle, Cloud SQL
mutual TLS, Supabase pooler port 6543 with prepare: false, etc.).
When client is supplied, all other connection options are ignored and
the caller owns the lifecycle of the client. This is the hook for
advanced setups (IAM token refresh, pre-configured TLS, etc.) and for
hermetic tests.
Properties
Section titled “Properties”client?
Section titled “client?”
optionalclient?:Sql<{ }>
Defined in: packages/db-postgres/src/index.ts:39
connectionString?
Section titled “connectionString?”
optionalconnectionString?:string
Defined in: packages/db-postgres/src/index.ts:33
connectTimeout?
Section titled “connectTimeout?”
optionalconnectTimeout?:number
Defined in: packages/db-postgres/src/index.ts:38
idleTimeout?
Section titled “idleTimeout?”
optionalidleTimeout?:number
Defined in: packages/db-postgres/src/index.ts:37
optionalmax?:number
Defined in: packages/db-postgres/src/index.ts:36
prepare?
Section titled “prepare?”
optionalprepare?:boolean
Defined in: packages/db-postgres/src/index.ts:35
optionalssl?:PostgresSslOptions
Defined in: packages/db-postgres/src/index.ts:34
optionalurl?:string
Defined in: packages/db-postgres/src/index.ts:32