pgadmin-org / pgadmin-org/pgadmin4
Copy output as Markdown table
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 891
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 8
Description
Describe the solution you'd like
I would like to copy query output as markdown table in order to use it directly in Github/Gitlab issues.
Describe alternatives you've considered
- Copy as TSV and then use a tool like https://tableconvert.com/csv-to-markdown to convert to Markdown
- I was pointed to the preferences in #7004 , where I can set the pipe
|as a separator instead of tab. From there it is very close to a markdown table, you just need to add a line after the column headers with something like---|---, depending on number of columns.
Additional context
The alternative is fragile and, for example, does not work for JSON because of #7004
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by tracing pgAdmin's existing query-output copy behavior and the preferences discussed in issue #7004; done means providing Markdown-table output directly, including the header separator, without relying on TSV conversion and with JSON output considered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100