47 Commits

Author SHA1 Message Date
George Gensure
f6952c42b5 Respect union wrap parameter as last argument
union's wrap parameter was being ignored and misinterpreted when
building statements.  Maintain the spirit of the original implementation
(variable number of callbacks) consistent with other instances of
variadic-like behavior (select/columns), including handling list of
callbacks in array, while still processing the wrap parameter.
2015-02-03 12:33:17 -05:00
Philipp Waldmann
8866af423d support for nested having 2014-11-20 20:52:18 +01:00
Tim Griesser
5280e6e91c Handle empty array case for whereIn, fix #477 2014-10-01 15:50:48 -04:00
Tim Griesser
b4333f9fee Consistent handling of 'not' cases similar to 'or' 2014-10-01 15:22:49 -04:00
Vincent Schoettke
5c7d106283 join columns now optional. Fixes #504 2014-09-29 10:05:53 +02:00
Vincent Schoettke
ef173db790 Changed jshint option unused to true and fixed warnings 2014-09-02 22:56:51 +02:00
Vincent Schoettke
a373905171 Removed jshint eqnull and fixed warnings 2014-09-02 22:19:22 +02:00
Vincent Schoettke
f3874ac651 Fixed several jshint warnings. Added strict mode 2014-09-01 17:19:34 +02:00
Tim Griesser
886634eb02 Fix #441, raw in first argument of join 2014-08-31 12:20:31 -04:00
Tim Griesser
cd4864e740 Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex:
  oracle - fixed first and added more tests
  Fix bad argument to builder.whereNull
  don't throw away the postgres client's password
  oracle - fixed SQL for dropping multiple columns
  Do not attempt to release undefined connections from pool, #414
2014-08-24 14:26:56 -04:00
Ben Drucker
0e60ca120f Fix bad argument to builder.whereNull
Closes #431
2014-08-21 17:35:51 -04:00
Tim Griesser
ac984b9e9b Add .joinRaw and remove deprecated join notices 2014-08-14 18:02:50 -04:00
Tim Griesser
f14e894748 Support natural join, #423 2014-08-14 16:00:06 -04:00
Calvin Metcalf
ef981aa566 chained not, or, and and 2014-07-03 14:19:36 -04:00
Tim Griesser
295f57d296 Fix #282, add raw support in groupBy / orderBy
Adds groupByRaw, orderByRaw as convenience methods
for groupBy(raw) / orderBy(raw)
2014-06-27 11:58:06 -04:00
Tim Griesser
e9dea0435d Support alias subselect with 'as' method 2014-06-14 16:26:01 -04:00
Tim Griesser
c10001dc59 don't add undefined columns 2014-06-06 17:27:09 -04:00
Tim Griesser
e73217e4c5 release 0.6.2 2014-06-04 16:24:29 -04:00
Tim Griesser
08fd7483c8 Even more documentation, added .pipe to the interface 2014-06-03 14:21:31 -04:00
Tim Griesser
5111370503 Don't deprecate havingRaw 2014-05-09 15:03:48 -04:00
Tim Griesser
5726c3250f move operator to formatters, add nicer syntax for where in, where between, where is null 2014-05-09 14:42:29 -04:00
Tim Griesser
2f6a42dd5e event emitters everywhere, standard 'query' event 2014-04-27 19:35:36 -04:00
Tim Griesser
3711de9be8 Don't deprecate toString, it's actually useful 2014-04-22 12:47:27 -04:00
Tim Griesser
c1ee0f5708 columnInfo, adapted code from @johanneslumpe in #190 2014-04-21 23:08:59 -04:00
Tim Griesser
a101ed5bba cleaning up the package.json's a bit 2014-04-21 20:00:39 -04:00
Tim Griesser
c324b04d30 adding some benches between 0.5 and now, huge gains seen 2014-04-21 19:56:01 -04:00
Tim Griesser
9272d0ba4c more testing for #162 2014-04-21 09:50:30 -04:00
Tim Griesser
c3bf4e455b deprecate .havingRaw 2014-04-21 09:33:24 -04:00
Tim Griesser
4b42dc62f8 deprecate .whereRaw 2014-04-21 08:24:23 -04:00
Tim Griesser
17c41f1b20 renaming utils to helpers, helper to utils 2014-04-16 04:29:20 -04:00
Tim Griesser
6c76cc5cf0 adding jshint, cleaning unused variables 2014-04-16 03:22:47 -04:00
Tim Griesser
1e3fd57e16 updating tests for a few recent pr's 2014-04-16 02:59:27 -04:00
Tim Griesser
db2f9e7f08 merge with master 2014-04-16 02:50:19 -04:00
Tim Griesser
0de9513a78 all tests green 2014-04-16 01:23:50 -04:00
Tim Griesser
4dee91551a all unit tests passing 2014-04-15 13:10:32 -04:00
Tim Griesser
a62ca4f7ee schema tests passing, some of the builder tests passing 2014-04-15 11:43:47 -04:00
Tim Griesser
9be8b41efa streams and things 2014-04-09 10:11:41 -04:00
Tim Griesser
dfdc426751 Majorly refactoring every piece of the library, WIP 2014-04-08 16:25:57 -04:00
Tim Griesser
55f7f28761 making stateless querying opt-in, not default 2014-02-22 17:06:33 -05:00
Tim Griesser
765978b474 underscore compatible 2014-02-22 13:33:46 -05:00
Tim Griesser
0fa7bd9523 fixing some global leaks 2014-02-22 12:16:01 -05:00
Tim Griesser
8bddaea5e2 adding several tests from recent modifications 2014-02-21 20:38:14 -05:00
Tim Griesser
28d5e48a15 accounting for the union only queries 2014-02-21 18:20:00 -05:00
Tim Griesser
549036d151 working on handling the statements 2014-02-21 17:16:11 -05:00
Tim Griesser
e6b2267bfe _runChain on the builder 2014-02-19 18:25:21 -05:00
Tim Griesser
5393cad7a0 only one tableName per query call 2014-02-18 09:49:18 -05:00
Tim Griesser
4c589cc960 working on refactoring the internals 2014-02-14 12:46:13 -05:00