You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
});
The text was updated successfully, but these errors were encountered:
The code which works in vanilla mysql fails at mysql-utilities/utilities.js:40:5 with Uncaught TypeError: undefined is not a function
The text was updated successfully, but these errors were encountered: