The Wayback Machine - https://web.archive.org/web/20201125105745/https://github.com/launchbadge/sqlx/issues/501
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

More parameters/query pairs in the PgConnectOptions uri parser #501

Open
dakom opened this issue Jul 9, 2020 · 1 comment
Open

More parameters/query pairs in the PgConnectOptions uri parser #501

dakom opened this issue Jul 9, 2020 · 1 comment

Comments

@dakom
Copy link

@dakom dakom commented Jul 9, 2020

The PgConnectOptions uri parser currently supports only 4 keys: "sslmode", "sslrootcert", "statement-cache-capacity", and "host"

The Postgres connection uri spec notes that there are many more, for example user and password

Should these not be added so that a connection string can be built using only named parameter keys?

@mehcode
Copy link
Member

@mehcode mehcode commented Jul 12, 2020

Should these not be added so that a connection string can be built using only named parameter keys?

More of a matter of it's not something we use and hasn't been requested (yet) so we haven't worked to expand the URI parser. Note that user and password can be set normally such as: postgres://user:password@host:port/database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.