mirror of
https://github.com/danbulant/sql2csv
synced 2026-05-19 04:18:33 +00:00
add saved location
This commit is contained in:
parent
a1d6fbc84e
commit
7354e022bd
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -118,7 +118,7 @@ con.connect(function(err) {
|
|||
loc = "." + loc;//fix for empty location
|
||||
loc += ".csv";
|
||||
fs.writeFile(loc, result.csv, { flag: "w"}, (err)=>{if(err)error(err)});
|
||||
success(`Task from file ${file} done in ` + Math.round(result.end - result.start) + "ms");
|
||||
success(`Task from file ${file} done in ` + Math.round(result.end - result.start) + "ms, saved to "+loc);
|
||||
})
|
||||
.catch(err => {error(err); process.exit(0)})
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue