FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/pg / ClientOptions

Type Alias: ClientOptions<T>

ClientOptions<T> = postgres.Options<T>

Options for creating a PostgreSQL client. Extends postgres.js options.

When max is omitted, @faasjs/pg supplies a pool size from process.env.PG_POOL_MAX or falls back to 10. Set max explicitly to bypass the environment default.

Type Parameters

T

T extends Record<string, PostgresType> = Record<string, never>

Custom Postgres type parsers map.