You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm thinking about exposing some "special" functions to create "special" objects to use in conditions.
Person.find({age: orm.between(20,30)}, ....);
This.between() would return a common object with a non-enumerable function that would tell the sql builder what thing it is.. this could be used for other things:
Activity
dresende commentedon Jan 10, 2013
It's not possible, you need to develop code for now.
dresende commentedon Jan 10, 2013
I just checked all 3 drivers and the syntax is the same so it is a good addition. I just don't know yet the best syntax for this.
dresende commentedon Jan 10, 2013
I'm thinking about exposing some "special" functions to create "special" objects to use in conditions.
This
.between()would return a common object with a non-enumerable function that would tell the sql builder what thing it is.. this could be used for other things:Gamaroff commentedon Jan 10, 2013
That sounds great. Very powerful indeed.
Changes sql SELECT to support special objects in condition values (fixes
Merge pull request #19 from locomote/fix/lm-2855-fix-tests-for-all-dr…