- You should prepare a .csv file
- It's to mysql
- The first row isn't column defined. It means all rows which should be data.
$ npm install
$ npm run demo
2. See the file in ./output/sql_sample_xxxxx.sql
1. Put .csv
file in input folder
{
columnArray: [] # Insert SQL Column
csvHeader: {} # Column Defined
inputFileName: "xxx.csv"
tableName: "`table`" or "`database`.`table`"
outputFileName: "xxx"
initRowData: function() {
return {
}
}
}
3. Add Some transform Logical in lib/index.js
(option)
$ npm install
$ npm start
5. You can see the success message in terimal, and it will return output path.