No description
Find a file
2019-09-28 16:39:44 +02:00
.gitattributes Initial commit 2019-09-28 13:41:01 +02:00
.gitignore ignore package lock 2019-09-28 15:08:13 +02:00
config.yml fix example config 2019-09-28 13:49:32 +02:00
index.js GREEEN 2019-09-28 15:21:32 +02:00
package.json require mysql driver 2019-09-28 15:08:53 +02:00
README.md Add warning 2019-09-28 16:39:44 +02:00
sql2csv.js Return obj with timing 2019-09-28 16:35:02 +02:00

SQL2CSV

Convert MySQL SELECT to CSV format

Folders

Input

'input' folder is for .sql files containing QUERYs. Query must be correct, isn't modified in any way (directly executed, as is). Must include SELECT. Make sure the input is save, it's directly executed and not checked for anything.

Output

'output' folder is for .cvs files. Output of sql2csv is written to the folder, the name of the file is same as input file except .sql is changed to .cvs.

The folders should be created before running the program. Sql2cvs doesn't create folders and will fail if they don't exists!