Skip to content

docs: add missing parameters on pg.Client Config#3422

Merged
brianc merged 1 commit into
masterfrom
push-rzmuwzznutyv
Apr 22, 2025
Merged

docs: add missing parameters on pg.Client Config#3422
brianc merged 1 commit into
masterfrom
push-rzmuwzznutyv

Conversation

@hjr3

@hjr3 hjr3 commented Apr 19, 2025

Copy link
Copy Markdown
Collaborator
  • client_encoding
  • fallback_application_name
  • options

==========

While working on pg-connection-string, I noticed that client_encoding did not exist on ClientConfig in @types/pg. This led to me to discover that it was not a documented parameter as well.

Reference: https://www.postgresql.org/docs/current/libpq-connect.html

Use in code:

client_encoding

this.client_encoding = val('client_encoding', config)

fallback_application_name

this.fallback_application_name = val('fallback_application_name', config, false)

options

this.options = val('options', config)

- client_encoding
- fallback_application_name
- options
@hjr3 hjr3 changed the title docs: add client_encoding parameter on pg.Client Config docs: add missing parameters on pg.Client Config Apr 20, 2025
@hjr3
hjr3 force-pushed the push-rzmuwzznutyv branch from 512abba to cd0c5f9 Compare April 20, 2025 13:03
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 20, 2025

Copy link
Copy Markdown

Deploying node-postgres with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd0c5f9
Status: ✅  Deploy successful!
Preview URL: https://527c09d9.node-postgres.pages.dev
Branch Preview URL: https://push-rzmuwzznutyv.node-postgres.pages.dev

View logs

@brianc brianc left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, ty!

@brianc
brianc merged commit 9cc7d8e into master Apr 22, 2025
@brianc
brianc deleted the push-rzmuwzznutyv branch April 22, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants