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

Support multiple --sql and --output pairs #15

Open
simonw opened this issue Jul 1, 2019 · 3 comments
Open

Support multiple --sql and --output pairs #15

simonw opened this issue Jul 1, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Jul 1, 2019

Like this:

$ db-to-sqlite mysql://localhost/blah blah.db \
    --sql "select id, name from categories" --output="cats" \
    --sql "select id, name from authors" --output="authors"
@simonw simonw added the enhancement New feature or request label Jul 1, 2019
@simonw
Copy link
Owner Author

simonw commented Jun 12, 2021

This design doesn't feel right. Instead the --sql option should take two arguments - but that would break backwards compatibility now. Worth a major version bump?

@simonw
Copy link
Owner Author

simonw commented Jun 12, 2021

I could add --query output_table sql_query and deprecate --sql and --output - leaving them available but removing them from the documentation and help using hidden=False.

@jney
Copy link

jney commented Mar 4, 2022

I would love this feature too. Is it still planned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants