Comparing version 0.3.8 to 0.3.9
@@ -126,2 +126,21 @@ !function(){ | ||
} | ||
, like: function(value) { | ||
return function(){ | ||
return { | ||
fn: 'like' | ||
, value: value | ||
} | ||
} | ||
} | ||
, notLike: function(value) { | ||
return function(){ | ||
return { | ||
fn: 'notLike' | ||
, value: value | ||
} | ||
} | ||
} | ||
}); | ||
@@ -128,0 +147,0 @@ |
{ | ||
"name" : "ee-orm" | ||
, "description" : "An easy to use ORM for node.js. Supports advanced eager loading, complex queries, joins, transactions, complex database clusters & connection pooling." | ||
, "version" : "0.3.8" | ||
, "version" : "0.3.9" | ||
, "homepage" : "https://github.com/eventEmitter/ee-orm" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
@@ -27,3 +27,3 @@ | ||
db.event({id: ORM.and(2,3)}).find(cb); | ||
db.event({title: ORM.like('Mapp%')}).find(cb); | ||
@@ -30,0 +30,0 @@ |
@@ -551,2 +551,10 @@ | ||
}); | ||
it('Filtering the like operator', function(done){ | ||
db.event({title: ORM.like('Mapp%')}).find(expect('[{"id":3,"title":"Mapping Test","startdate":"1970-01-01T00:00:00.000Z","enddate":null,"canceled":true},{"id":2,"title":"Mapping Test","startdate":"1970-01-01T00:00:00.000Z","enddate":null,"canceled":null}]', done)); | ||
}); | ||
it('Filtering the notLike operator', function(done){ | ||
db.event({title: ORM.notLike('Mapp%')}).find(expect('[{"id":4,"title":"Changed title","startdate":"1970-01-01T00:00:00.000Z","enddate":"2014-05-13T16:53:20.000Z","canceled":null},{"id":1,"title":"Changed title","startdate":"1970-01-01T00:00:00.000Z","enddate":null,"canceled":null}]', done)); | ||
}); | ||
}); | ||
@@ -553,0 +561,0 @@ |
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
168066
3161