Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged

Conversation

hjr3
Copy link
Collaborator

@hjr3 hjr3 commented Apr 19, 2025

  • 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
Copy link

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

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

Copy link
Owner

@brianc brianc left a comment

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
12 of 13 checks passed
@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