SublimeText-SQLTools icon indicating copy to clipboard operation
SublimeText-SQLTools copied to clipboard

Export to CSV feature

Open javidbu opened this issue 7 years ago • 2 comments

Issue Type

Feature Request

Description

It would be great if we could export to CSV a query result, with some settings like csv_delimiter, csv_header (true/false), csv_quote_character and things like that. This is super helpful for sharing the result with others, using it in another tool...

Version

  • SQLTools Version: v0.9.9

javidbu avatar Jan 25 '18 11:01 javidbu

use this plugin https://github.com/misfo/Shell-Turtlestein and shell command function tbl2csv() { sed '/^[-+]-.*$/d;/^ *$/d;s/|/,/g;s/^,//g' $@ }

MxJ24 avatar Mar 08 '18 14:03 MxJ24

Having this built in is essential. If you're pulling data using SQL, you almost definitely are going to be manipulating in some way, be it in R, Python, Excel, or something else. So being able to export it to an easily readable, standard format is key.

amohield avatar Dec 10 '19 15:12 amohield