24 Commits

Author SHA1 Message Date
Daryl Lau
8511171b00 more comprehensive case insensitive operator test 2014-03-22 13:18:16 -07:00
Daryl Lau
bf4e39718e allow case insensitive WHERE operators 2014-03-22 12:39:48 -07:00
Tim Griesser
6470af8456 fix #182, null limit/offset does not break chain 2014-02-18 09:58:21 -05:00
Tyler Kellen
0e83902c8c add pluck to builder interface
enables grabbing a single element from each row in results,
returning a promise which yields an array of those values.
2014-01-28 16:01:30 -05:00
Tim Griesser
667a20b66e switching out underscore for lodash 2013-11-25 02:00:12 -05:00
Luigy Leon
91ce6d9121 Test for aggregate function with output name. 2013-11-23 13:18:07 -05:00
Luigy Leon
35047912fe Drop default output name for aggregate functions. 2013-11-23 11:44:25 -05:00
Kia Rahimian
d26c1b7b95 fixed bug with .having() 2013-11-19 22:47:38 -05:00
Tim Griesser
17d09f2655 Merge branch 'bluebird'
* bluebird:
  cleanup on the .then interface
  swapping in bluebird, some promise cleanup
2013-11-02 09:24:17 -04:00
Tim Griesser
48096b1468 fix #98, aggregates on toString / clone 2013-10-31 10:34:20 -04:00
Tim Griesser
b20c6c3f8e swapping in bluebird, some promise cleanup 2013-10-27 22:34:58 -04:00
Tim Griesser
5c496b9fa5 remove possible sql injection in 'orderBy', thanks @sebgie 2013-10-15 09:15:42 -04:00
Tim Griesser
b70e787d25 fix for #84, adding forUpdate and forShare on transactions 2013-10-14 08:02:26 -04:00
Tim Griesser
1ec57c12b7 fix for #91, keep the correct query type on clones 2013-10-14 07:20:12 -04:00
Tim Griesser
96a7a9e747 fix for #78, underscore not included in various grammar files 2013-09-18 11:56:46 -04:00
Tim Griesser
ee1efa50e3 Attaching grammars directly onto client instances, fixes #74
Allows passing in an intitialized client instance to the constructor
2013-09-17 06:54:26 -04:00
Tim Griesser
1d21980eef prep for 0.4.1 2013-09-16 10:49:30 -04:00
Tim Griesser
b8dd337334 0.4.0 release 2013-09-13 17:46:03 -04:00
Tim Griesser
b1787cbb10 adding a toString method that properly escapes queries, fixes #59 2013-09-13 12:59:12 -04:00
Tim Griesser
80c03073c7 Added a flags property on the builder...
Flags property for tracking distinct, limit, offset, etc.
Added a 'type' on the JoinClause object, other minor changes
2013-09-13 10:51:12 -04:00
Tim Griesser
dc312f322b fix on the toString for clauses, unit test cleanup 2013-09-12 01:13:07 -04:00
Tim Griesser
01c4a83d35 lots of library restructure / unit test work 2013-09-08 15:57:32 -04:00
Tim Griesser
faa2497ef1 wip unit tests & refactoring 2013-09-05 16:36:49 -04:00
Tim Griesser
f3a59a867b a bit hacked together on the sqlite3, but renameColumn for all db's 2013-09-04 17:32:32 -04:00