Skip to content

Commit

Permalink
Update preparedstatement.js
Browse files Browse the repository at this point in the history
adding execute batch
  • Loading branch information
javier-elizaga authored and Jason Ozias committed May 22, 2017
1 parent e727e77 commit 1a982a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/preparedstatement.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ PreparedStatement.prototype.execute = function(callback) {
});
};

PreparedStatement.prototype.executeBatch = function(callback) {
this._ps.executeBatch(function(err, result) {
if (err) { winston.error(err); return callback(err); }
callback(null, result);
});
};

PreparedStatement.prototype.executeQuery = function(callback) {
this._ps.executeQuery(function(err, resultset) {
if (err) { winston.error(err); return callback(err); }
Expand Down

0 comments on commit 1a982a8

Please sign in to comment.