Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Export to CSV feature #184

Open
javidbu opened this issue Jan 25, 2018 · 2 comments
Open

Export to CSV feature #184

javidbu opened this issue Jan 25, 2018 · 2 comments

Comments

@javidbu
Copy link
Contributor

javidbu commented Jan 25, 2018

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
@MxJ24
Copy link

MxJ24 commented Mar 8, 2018

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

@amohield
Copy link

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.

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

No branches or pull requests

3 participants