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

Command line flags not working to set driver and dsn #41

Closed
mvaerle opened this issue Jan 25, 2021 · 2 comments
Closed

Command line flags not working to set driver and dsn #41

mvaerle opened this issue Jan 25, 2021 · 2 comments

Comments

@mvaerle
Copy link
Contributor

mvaerle commented Jan 25, 2021

I'm trying to use command line flags to specify the driver and dsn, but it doesn't look like it's getting picked up. Or maybe I'm doing it wrong. When using environment variables it does work!

This doesn't work, data is still being put in the sqlite database:
cloudquery fetch --driver postgresql --dsn postgresql://localhost:5432/cloudquery

while this does work:
CQ_DRIVER=postgresql CQ_DSN=postgresql://localhost:5432/cloudquery cloudquery fetch

@yevgenypats
Copy link
Member

@mvaerle I'm trying to reproduce it. Are you using latest version?

ghost pushed a commit that referenced this issue Jan 25, 2021
possibally fix this issue:
#41
@mvaerle
Copy link
Contributor Author

mvaerle commented Jan 26, 2021

My bad, upgrading from 0.8.5 to 0.8.7 fixed the issue

@mvaerle mvaerle closed this as completed Jan 26, 2021
erezrokah pushed a commit that referenced this issue Aug 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

No branches or pull requests

2 participants