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

Provide connectionstring/dsn #10

Open
rhys-vdw opened this issue Jan 11, 2019 · 3 comments
Open

Provide connectionstring/dsn #10

rhys-vdw opened this issue Jan 11, 2019 · 3 comments

Comments

@rhys-vdw
Copy link

rhys-vdw commented Jan 11, 2019

Would be it be possible to support a single DSN argument rather than the host/db/username/pass vars?

(Might be more appropriate to open this issue at postgrator itself)

@bcomnes
Copy link
Contributor

bcomnes commented Mar 31, 2022

This would be a nice addition. Open to PRs?

@bcomnes
Copy link
Contributor

bcomnes commented Mar 31, 2022

Apparently all ENV vars that https://node-postgres.com/features/connecting#environment-variables supports also works with this cli. Do you see DSN env var listed here?

https://www.postgresql.org/docs/9.1/libpq-envars.html

@perrin4869
Copy link
Collaborator

I'm not sure about the usefulness of this feature and it doesn't seem to be able to be elegantly implemented...
The underlying clients seem to not really work with connection strings.
I'd look over a PR implementing this though if you think this would be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants