From 1bad43a4aa3f17d18176dcc05dfddf1fc6c2ef99 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 20 Aug 2014 16:12:46 -0700 Subject: [PATCH 1/2] Add ping() --- lib/mysql.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mysql.js b/lib/mysql.js index 319f3d7..9f57472 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -1203,5 +1203,9 @@ MySQL.prototype.disconnect = function () { } }; +MySQL.prototype.ping = function(cb) { + this.query('SELECT 1 AS result', cb); +}; + require('./discovery')(MySQL); From 934ec805718e924b944293b542ef9012867b2538 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 20 Aug 2014 16:35:00 -0700 Subject: [PATCH 2/2] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0692413..03ac8ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-connector-mysql", - "version": "1.4.3", + "version": "1.4.4", "description": "MySQL connector for loopback-datasource-juggler", "main": "index.js", "scripts": {