Comparing version 2.1.5 to 2.1.6
### v2.2.0 - (to do, in future) | ||
- Fixes error code spelling: `PARAM_MISSMATCH` -> `PARAM_MISMATCH` | ||
### v2.1.5 - 08 Apr 2013 | ||
### v2.1.6 - 23 Apr 2014 | ||
- Add '.omit' to chain find - opposite of '.only' | ||
### v2.1.5 - 08 Apr 2014 | ||
- Don't create indexes for primary/composite keys; they are created automatically (#484) | ||
@@ -6,0 +9,0 @@ |
@@ -14,3 +14,3 @@ # AnonTXT demo app | ||
git tag | ||
git checkout v2.1.3 | ||
git checkout v2.1.4 | ||
``` | ||
@@ -17,0 +17,0 @@ |
@@ -40,2 +40,13 @@ var _ = require("lodash"); | ||
}, | ||
omit: function () { | ||
var omit = null; | ||
if (arguments.length && Array.isArray(arguments[0])) { | ||
omit = arguments[0]; | ||
} else { | ||
omit = Array.prototype.slice.apply(arguments); | ||
} | ||
this.only(_.difference(Object.keys(Model.properties), omit)); | ||
return this; | ||
}, | ||
limit: function (limit) { | ||
@@ -42,0 +53,0 @@ opts.limit = limit; |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version" : "2.1.5", | ||
"version" : "2.1.6", | ||
"license" : "MIT", | ||
@@ -18,0 +18,0 @@ "homepage" : "http://dresende.github.io/node-orm2", |
@@ -25,3 +25,3 @@ ## Object Relational Mapping | ||
- MySQL | ||
- MySQL & MariaDB | ||
- PostgreSQL | ||
@@ -392,2 +392,3 @@ - Amazon Redshift | ||
``` | ||
If you want to skip just one or two properties, you can call `.omit()` instead of `.only`. | ||
@@ -394,0 +395,0 @@ Chaining allows for more complicated queries. For example, we can search by specifying custom SQL: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
842
217289
59
5704