Add ping()

This commit is contained in:
Raymond Feng 2014-08-20 16:12:46 -07:00
parent 044305e5ed
commit 1bad43a4aa
1 changed files with 4 additions and 0 deletions

View File

@ -1203,5 +1203,9 @@ MySQL.prototype.disconnect = function () {
}
};
MySQL.prototype.ping = function(cb) {
this.query('SELECT 1 AS result', cb);
};
require('./discovery')(MySQL);