Skip to content

How to connect to unix socket path in a connection string? #290

Discussion options

You must be logged in to vote

Ooh, found it! :P It took my quite some time, but I found it pretty much right after posting this :P

The underlying package that does the connecting string parsing is pg-connection-string, and those docs specified how I should form it:

socket://postgres:n4EijI3kEOdkEfFp@/Users/kelley/cloudsql/my-project-322719:europe-west4:my-project?db=postgres

Putting this connection string into slonik works :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kelleyvanevert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants