db-to-sqlite icon indicating copy to clipboard operation
db-to-sqlite copied to clipboard

Support multiple --sql and --output pairs

Open simonw opened this issue 5 years ago • 3 comments

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 avatar Jul 01 '19 01:07 simonw

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 avatar Jun 12 '21 14:06 simonw

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.

simonw avatar Jun 12 '21 14:06 simonw

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

jney avatar Mar 04 '22 13:03 jney