Conversation
|
@pasenor Is this still relevant, or not anymore (superseded by #74)? |
|
I've been working with SQL queries and shell commands to process the output, specifically aiming to retrieve results without headers. Consider the following example: SELECT
5 >= 0
AND 5 <= 10;To eliminate the header from the output, I used mycli --csv --no-warn -e '\n; \. script.sql' mariadb://mysql@localhost/test | sed '1d'The resulting data output is as follows: From this, it's clear that while we can manipulate the output to exclude the header, the process isn't as straightforward or clean as it could be. I believe implementing a feature that allows for direct output without headers would greatly enhance usability and efficiency. What are your thoughts on exploring this feature further? |
|
@gfrlv This has been sitting for a while. Still useful? |
|
This should now be covered by #92 . |
Description
A new argument is needed to implement
\T csv --skip-headersin mycli, see dbcli/mycli#872Checklist
CHANGELOG.AUTHORSfile (or it's already there).pip install pre-commit && pre-commit install), and ranblackon my code.