DataGrip extension to output result sets to markdown table
Hi Folks,
I created a small extension to copy the query results to a markdown table. The format works for Github and Jira, though I haven't tried others. It is based mostly off of HTML.JavaScript.html.js -- source here:
https://gist.github.com/dennisobrien/d3a6a141ff4a92566cf9fdc1e7d79bd9
The documentation said to put the file in Extensions/DataGrip/data/extractors/ but I could only get this to show up if I put it in Extensions/Database Tools and SQL/data/extractors/
I'm also curious how others go about sharing extensions with a team. Is the best way to create a plug-in that installs the extension?
thanks,
Dennis
请先登录再写评论。
Hi,
Since this just a script, you need to share it. Everyone in your team should put it into ./Extensions/Database Tools and SQL/data/extractors folder.
Thank you.
Hi,
I made a groovy-script for extracting markdown:
https://gist.github.com/classycode96/315835f4ddd419f452d9dc0e11b88a0b
The only thing is that it does not output a well-formatted table. But that was not my use-case as I have a MarkDown-Plugin which does it pretty well.