- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add table format option for drush sql:query output #5123
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
Comments
This does it, on Mysql. I opened a PR to document it. #5124
|
That was fast, thanks! Lando is challenged with this syntax, though:
This works, if a bit clunky. Also, it makes it quite hard to use single and double quotes, if needed:
Since most Drupal developers are now using Docker-based tools like DDEV or Lando, could a |
I sympathize with the clunkiness, but I dont think its Drush's problem to solve. This example is using pretty vanilla bash. FWIW DDEV worked on quoting at ddev/ddev#3603 |
Thanks for the tip about the DDEV issue, I'll hear Lando if they could consider something similar. |
Is your feature request related to a problem? Please describe.
drush sql:query
works well, but for improved readability, is it possible to show the result in table format, showing the column names?Currently
Would this be possible?
Perhaps by adding a
format
option like this?drush sql:query --format=table "SELECT table_ ...
The text was updated successfully, but these errors were encountered: