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

add support for unix domain connection urls #423

Merged
merged 1 commit into from Nov 16, 2021
Merged

add support for unix domain connection urls #423

merged 1 commit into from Nov 16, 2021

Conversation

dbatten5
Copy link
Contributor

closes #422

unix domain connection urls come in the following format:

"postgresql+psycopg2://user:password@/dbname?host=/var/lib/postgresql" or
"postgresql+psycopg2://user:password@/dbname?unix_sock=/var/lib/postgresql"

here we use the options dict to retrieve the hostname

unix domain connection urls come in the following format:
- "postgresql+psycopg2://user:password@/dbname?host=/var/lib/postgresql" or
- "postgresql+psycopg2://user:password@/dbname?unix_sock=/var/lib/postgresql"

here we use the options dict to retrieve the hostname
Copy link
Member

@aminalaee aminalaee left a comment

Choose a reason for hiding this comment

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

Thank you for this.

@aminalaee aminalaee merged commit 8266962 into encode:master Nov 16, 2021
@dbatten5 dbatten5 deleted the unix-socket-hostname branch November 16, 2021 09:23
@aminalaee aminalaee mentioned this pull request Jan 14, 2022
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.

DatabaseUrl bug when using Unix domain socket
2 participants