Use MySQL LOAD DATA INFILE using node.js?

Are there node.js MySQL drivers that support LOAD DATA INFILE (http://dev.mysql.com/doc/refman/5.0/en/load-data.html)? I have some utilities that rely heavily on bulk insertion and cannot find any node.js drivers that clearly indicate its support.

+4
source share
2 answers

This post assumes that the felixge driver supports LOAD DATA INFILE.

+1
source

Just make sure it works:

conn.query('LOAD DATA LOCAL INFILE ? INTO TABLE my_table (col1, col2)', [pathToFile], function(err) { //done }); 
0
source

All Articles