From 2324d34d1a101c3872036d3fc8165d7d9a0b296b Mon Sep 17 00:00:00 2001 From: Arek W Date: Thu, 21 Aug 2014 21:28:47 +1000 Subject: [PATCH] v2.1.19 --- Changelog.md | 1 + Readme.md | 5 +++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 7722ed2b..1439b956 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,6 @@ ### v2.1.19 - 21 Aug 2014 - Fix Chain.find().remove() & Chain.find.count() with mapsTo keys (#530) +- Add not_like comparator ### v2.1.18 - 29 Jul 2014 - Add `alwaysValidate` flag (#540, #352) diff --git a/Readme.md b/Readme.md index 6a3e2a5b..7be7f81d 100755 --- a/Readme.md +++ b/Readme.md @@ -472,7 +472,8 @@ a few examples to describe it: { col1: orm.lte(123) } // `col1` <= 123 { col1: orm.between(123, 456) } // `col1` BETWEEN 123 AND 456 { col1: orm.not_between(123, 456) } // `col1` NOT BETWEEN 123 AND 456 -{ col1: orm.like(12 + "%") } // `col1` like '12%' +{ col1: orm.like(12 + "%") } // `col1` LIKE '12%' +{ col1: orm.not_like(12 + "%") } // `col1` NOT LIKE '12%' ``` #### Raw queries @@ -849,7 +850,7 @@ Pet(2).getOwners(...); ## Adding external database adapters -To add an external database adapter to `orm`, call the `addAdapter` method, passing in the alias to use for connecting +To add an external database adapter to `orm`, call the `addAdapter` method, passing in the alias to use for connecting with this adapter, along with the constructor for the adapter: ```js diff --git a/package.json b/package.json index a25f9566..883887e5 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "analyse" : false, "dependencies": { "enforce" : "0.1.2", - "sql-query" : "git+https://github.com/dresende/node-sql-query.git#v0.1.21", + "sql-query" : "git+https://github.com/dresende/node-sql-query.git#v0.1.23", "sql-ddl-sync" : "git+https://github.com/dresende/node-sql-ddl-sync.git#v0.3.10", "hat" : "0.0.3", "lodash" : "2.4.1"