Skip to content
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

feat: add support for options parameter in connection URLs #551

Merged
merged 3 commits into from Mar 25, 2024

Conversation

thecodeboss
Copy link
Contributor

Fixes #547.

As described in #547, libpq supports an options parameter in connection URLs for specifying command-line options to send to the server at connection start (docs are here).

I added a tests for my specific use case of setting search_path, however there are plenty of other potential options that could be added.

Relates to #457 where a workaround was provided of setting these options via an environment variable PGOPTIONS=...

@gajus gajus merged commit 9cc97c3 into gajus:main Mar 25, 2024
5 checks passed
Copy link
Contributor

🎉 This PR is included in version 37.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@thecodeboss thecodeboss deleted the pgoptions branch March 25, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for options parameter in connection URLs
2 participants