-
Notifications
You must be signed in to change notification settings - Fork 31
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
sq should be able to work with datasources defined in-line #3
Comments
This is still a possibility. The post recent proposed syntax on this would be: $ sq '@(mysql://user:pass@localhost/sakila)' | .actor | .[0:10]
$ sq '@(./path/to/sakila.xlsx).actor' However, for file-based formats there is less of a need for this anymore due to the ability to do: $ cat sakila.xlsx | sq .actor |
I want to also mention that as a Postgres user, another reason why this feature would make life a lot easier and more versatile is by facilitating the querying of different schemas on the same database more easily. at present you also have to add each schema as a different
whereas it would be a lot easier sometimes to just call
...or maybe overriding the schema with a flag could also work
...not sure what the equivalent to schemas/namespacing in other databases are so as to try and keep it as generic as possible. |
Currently one must do
sq add DS
and then reference the data source in a later command. It should be possible to refer to data sources in-line, e.g.The text was updated successfully, but these errors were encountered: