Closed brianloveswords closed 10 years ago
Can't wait for TravisCI to arbitrarily fail this (tests pass locally)
Oh, nice! Happytimes.
One thing to note (which is noted in the updated docs) – when using includeTotal
an object, instead of an array, will be passed back, e.g.
{ total: 39201, rows: [ {id: 1}, {id: 2} ] }
instead of just
[ {id: 1}, {id: 2} ]
Fixed the where
issue, let me know if you see anything else stupid.
We don't do GROUP BY
s, so not really an issue, but worth remembering this should that ever get implemented.
@andrewhayward Indeed! Does this look ready to go otherwise?
@brianloveswords - mentally, yes... haven't had a chance to run through the code outside of my brain.
GOOD ENOUGH FOR ME! Tests pass and @christensenep tested it with real world code in mozilla/badgekit-api#113.
v0.8.3
published. (0.8.2 is identical to 0.8.1 because I messed up -_-).
This came up in a discussion on mozilla/badgekit-api#113 and it seemed like a generically useful thing to provide.
cc @andrewhayward, @christensenep