From 99758e36b37cd1d11c19464529d49ef1fb8932a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=99=AF=E8=BF=9C?= Date: Fri, 21 Apr 2017 15:13:18 +0800 Subject: [PATCH 1/4] add Not-Like pairs --- lib/sql.js | 1 + npm-shrinkwrap.json | 6 +++--- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/sql.js b/lib/sql.js index ce77ca78..1f175b92 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -148,6 +148,7 @@ var sql = module.exports = { else if (key === '<=' || key === 'lessThanOrEqual') return attrStr + '<=' + valueStr; else if (key === '>' || key === 'greaterThan') return attrStr + '>' + valueStr; else if (key === '>=' || key === 'greaterThanOrEqual') return attrStr + '>=' + valueStr; + else if (key === 'not like') return attrStr + ' NOT LIKE \'' + nakedButClean + '\''; else if (key === '!' || key === 'not') { if (value === null) return attrStr + ' IS NOT NULL'; else if (_.isArray(value)) return attrStr + ' NOT IN(' + valueStr + ')'; diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 0597a7ca..e37b333f 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -74,9 +74,9 @@ "resolved": "https://registry.npmjs.org/waterline-errors/-/waterline-errors-0.10.1.tgz" }, "waterline-sequel": { - "version": "0.5.7", - "from": "waterline-sequel@0.5.7", - "resolved": "https://registry.npmjs.org/waterline-sequel/-/waterline-sequel-0.5.7.tgz", + "version": "0.5.8", + "from": "cjy37/waterline-sequel@0.5.8", + "resolved": "https://github.com/cjy37/waterline-sequel/tarball/0.5.x", "dependencies": { "lodash": { "version": "3.10.0", diff --git a/package.json b/package.json index f2833549..36fc387f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "mysql": "2.10.2", "waterline-cursor": "0.0.6", "waterline-errors": "0.10.1", - "waterline-sequel": "0.5.7" + "waterline-sequel": "https://github.com/cjy37/waterline-sequel/tarball/0.5.x#0.5.8" }, "devDependencies": { "captains-log": "~0.11.11", From 1baaa5b6d97db7944a48d6d563293df32d032f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=99=AF=E8=BF=9C?= Date: Fri, 21 Apr 2017 16:11:54 +0800 Subject: [PATCH 2/4] v0.11.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 36fc387f..1d2c9113 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sails-mysql", - "version": "0.11.5", + "version": "0.11.6", "description": "MySQL adapter for Sails.js", "main": "lib/adapter.js", "scripts": { From 994201cc3179747dcaa56fffb23b468513a353ae Mon Sep 17 00:00:00 2001 From: cjy37 Date: Tue, 20 Jun 2017 17:07:24 +0800 Subject: [PATCH 3/4] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1d2c9113..f99aefc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sails-mysql", - "version": "0.11.6", + "version": "0.11.7", "description": "MySQL adapter for Sails.js", "main": "lib/adapter.js", "scripts": { @@ -26,7 +26,7 @@ "mysql": "2.10.2", "waterline-cursor": "0.0.6", "waterline-errors": "0.10.1", - "waterline-sequel": "https://github.com/cjy37/waterline-sequel/tarball/0.5.x#0.5.8" + "waterline-sequel": "https://github.com/cjy37/waterline-sequel/archive/0.5.8.tar.gz" }, "devDependencies": { "captains-log": "~0.11.11", From 563c2a9fc9f72a124f825ba08c522855139852d3 Mon Sep 17 00:00:00 2001 From: cjy37 Date: Tue, 20 Jun 2017 17:11:16 +0800 Subject: [PATCH 4/4] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f99aefc8..1edc2b48 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sails-mysql", - "version": "0.11.7", + "version": "0.11.8", "description": "MySQL adapter for Sails.js", "main": "lib/adapter.js", "scripts": { @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "git://github.com/balderdashy/sails-mysql.git" + "url": "git://github.com/cjy37/sails-mysql.git" }, "keywords": [ "mysql",