Skip to content
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

Markdown table output #482

Open
bersace opened this issue Sep 27, 2024 · 0 comments
Open

Markdown table output #482

bersace opened this issue Sep 27, 2024 · 0 comments

Comments

@bersace
Copy link

bersace commented Sep 27, 2024

Hi,

Thanks for usql and dburl, very useful !

When pasting SQL query in a GitLab or GitHub field, it would be cool to use markdown table instead of backticks. What do you think of a markdown output format ?

Something like -M, --markdown.

$ usql --markdown $DSN < query.sql
| COLUMN | NAME |
|--------|------|
| FOO    | BAR  |
| TOTO   | TITI |
| PIF    | PAF  |
$

References: https://www.markdownguide.org/extended-syntax/#tables

Regards,
Étienne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant