89 Commits

Author SHA1 Message Date
Tim Griesser
1c403a5a40 Merge pull request #219 from ruifortes/master
Added support for multi-column "where in" clauses. ex:"(col1,col2) in ((1,1),(1,2),(2,1),(2,2))
2014-03-26 19:05:36 -04:00
Rui Fortes
b7bbb49364 Added tests for multi-column "whereIn" 2014-03-25 18:56:07 +00:00
Tim Griesser
90282058d8 Merge pull request #207 from kobalicekp/master
[Improvement] Replaced push.apply() calls with custom concat() function.
2014-03-20 09:06:23 -04:00
kobalicekp
b3aa0fb8dc Added integration tests for incrementing/decrementing negative numbers 2014-03-20 13:01:42 +01:00
Tim Griesser
716e3c3019 add .exec to the knex promise shim 2014-03-19 11:54:18 -04:00
Tim Griesser
eeeab07c42 reworking where values are parametereized/escaped 2014-03-14 16:56:55 -04:00
Tim Griesser
76dfc1348b fix issue with null bindings, change around the query compiler 2014-02-23 15:38:53 -05:00
Tim Griesser
8bddaea5e2 adding several tests from recent modifications 2014-02-21 20:38:14 -05:00
Tim Griesser
4c589cc960 working on refactoring the internals 2014-02-14 12:46:13 -05:00
Nikhil Benesch
0bf4044b74 Add 'avg' aggregate function
The 'AVG' aggregate function is specified in the SQL standard and
supported by MySQL, PostgreSQL, and SQLite. Include tests, too.
2014-01-19 15:38:59 -05:00
Tim Griesser
5cc47ed1ee don't assume undefined is 'where null' 2013-12-25 13:31:51 -05:00
Tim Griesser
06c38bcc2d Allow for returning in update queries, #132 2013-12-10 14:55:05 -05:00
Tim Griesser
10e3d398f4 Fix #132, allow multiple returning formats in postgres 2013-12-10 13:33:49 -05:00
Tim Griesser
44854ec984 updating test output for bigint & bigserial changes 2013-11-25 12:26:28 -05:00
Luigy Leon
6f967003d4 Failing test for #108 2013-11-23 12:10:01 -05:00
Tim Griesser
64f9deb651 fixes #100, increment/decrement values 2013-11-20 09:17:08 -05:00
Tim Griesser
d01dd8a9a1 merging with master 2013-11-02 10:19:09 -04:00
Tim Griesser
8b2ef4eef1 merging bluebird into migrations 2013-11-02 09:26:31 -04: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
86a1a24a1a some work on the migration code & api 2013-10-24 21:54:35 -04:00
Hung Tran
c884b6bbe7 added tests for table.charset and table.collate 2013-10-11 13:19:24 -05:00
Tim Griesser
ef0b01fc36 making composite key test more logical 2013-10-10 11:48:58 -04:00
Tim Griesser
fcec4f815a composite key example test 2013-10-10 11:21:32 -04:00
Tim Griesser
42b418aae9 formatting error message again, adding sql & bindings on error object 2013-10-07 08:23:22 -04:00
Tim Griesser
3ebc4cbb63 hasColumn docs, mysql hasColumn fix, fixes #87 2013-10-07 08:22:40 -04:00
Tim Griesser
f1989e513d editing error handling a bit, adding test, updated docs 2013-09-25 14:46:02 -04:00
Tim Griesser
2d1c0f019d fix for internal mutation of builder on multiple toSql calls 2013-09-24 08:14:02 -04:00
Tim Griesser
c56ea53c8c fix for #82, hasTable returning true 2013-09-23 23:07:38 -04:00
Tim Griesser
0ae10c3236 fixing query ordering in tests 2013-09-13 18:48:28 -04:00
Tim Griesser
6b89cedf92 minor fixes for the unit tests 2013-09-13 18:11:50 -04:00
Tim Griesser
71b47e925b pulling in the option feature from #64, rename to options 2013-09-13 11:40:51 -04:00
Tim Griesser
6cfa41a69f minor cleanup 2013-09-13 10:24:39 -04:00
Tim Griesser
1a47485d33 integration tests are workinggit st 2013-09-12 13:30:47 -04:00
Tim Griesser
48563dfd31 sqlite3 mostly working except for the schema things 2013-09-12 01:00:44 -04:00
Tim Griesser
522c8fff63 finally got the sqlite3 stuff working, now to just hook up the tests 2013-09-12 00:26:33 -04:00
Tim Griesser
634f4751a1 mysql and pg are mostly working, now onto sqlite3 2013-09-11 23:36:55 -04:00
Tim Griesser
01c4a83d35 lots of library restructure / unit test work 2013-09-08 15:57:32 -04:00