pgadmin-org / pgadmin-org/pgadmin4

Copy output as Markdown table

Open
#7,005 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.