66 Commits

Author SHA1 Message Date
Jani Evakallio
299bbfa60b Rename compose to modify 2015-07-16 15:15:04 +01:00
Jani Evakallio
de8a2e5da6 Commit babel artifacts for queryBuilder.compose 2015-07-09 16:10:14 +01:00
Tim Griesser
d0faa82a0f QueryBuilder -> Builder 2015-05-12 21:48:02 -04:00
Tim Griesser
521a6f9e97 Remove use strict, assumed in ES6 2015-05-09 14:01:19 -04:00
Tim Griesser
7e884cb325 Babel src -> lib, remove gulp 2015-05-09 13:58:18 -04:00
Tim Griesser
c529358fcb Allow object syntax for join, #743 2015-04-29 15:13:15 -04:00
Tim Griesser
e011768124 Adding back debug 2015-04-28 19:34:11 -04:00
Tim Griesser
2e47b9d2e8 Nicer query builder interface 2015-04-28 09:14:13 -04:00
Tim Griesser
17b04db6da Test for #647, chained update calls aggregate updates 2015-04-28 08:41:08 -04:00
Tim Griesser
7b17cc404a Oracle test suite up to date 2015-04-27 20:22:05 -04:00
Tim Griesser
36ced91ed5 Testing transactions, beginning to use tape, adding query to error message 2015-04-24 10:10:34 -04:00
Tim Griesser
26726c728b Fixing test config 2015-04-22 12:11:23 -04:00
Tim Griesser
f9aab9dc76 Major internal refactor
Beefed up transaction implementation, still needs tests
and cleanup of nested transaction queues.

Left todo:
- Fix commented out tests
- Fix oracle driver's transactions
2015-04-22 10:34:14 -04:00
Tim Griesser
eee4e9c005 Fixing the overall class dependency approach, lots of internal cleanup, WIP 2015-04-19 16:31:52 -04:00
Santi Albo
daecf96c9e Allow raw columns in where clauses 2015-04-17 17:41:52 +01:00
Tim Griesser
c14efb7b01 Add fromJS method, alternate solution for #761 2015-04-17 10:35:01 -04:00
Ozum Eldogan
e7e4f8d840 Fix: whereNot and orWhereNot for _objectWhere
_objectWhere is not generating correct sql when used with whereNot
and/or orWhereNot
2015-02-26 17:07:26 +02:00
Ozum Eldogan
ff9ede59e9 whereNot, orWhereNot
whereNot, orWhereNot methods added to single and wrapped wheres.
2015-02-26 16:31:30 +02:00
George Gensure
16b234c565 Adding multiple union tests for unwrapped/wrapped
Tests revealed some problems with argument and wrap interpretation,
corrected.
2015-02-03 21:11:42 -05:00
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