db-to-sqlite
db-to-sqlite copied to clipboard
Support multiple --sql and --output pairs
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"
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?
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
.
I would love this feature too. Is it still planned?