-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
The code which works in vanilla mysql fails at mysql-utilities/utilities.js:40:5 with Uncaught TypeError: undefined is not a function
var query = connection.query('SELECT * FROM posts');
query
.on('error', function(err) {
// Handle error, an 'end' event will be emitted after this as well
})
.on('fields', function(fields) {
// the field packets for the rows to follow
})
.on('result', function(row) {
// Pausing the connnection is useful if your processing involves I/O
connection.pause();
processRow(row, function() {
connection.resume();
});
})
.on('end', function() {
// all rows have been received
});
Metadata
Metadata
Assignees
Labels
No labels