301 Commits

Author SHA1 Message Date
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
55f7f28761 making stateless querying opt-in, not default 2014-02-22 17:06:33 -05:00
Tim Griesser
ede184a5be add test for #162 2014-02-21 20:47:46 -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
6470af8456 fix #182, null limit/offset does not break chain 2014-02-18 09:58:21 -05:00
Tim Griesser
4c589cc960 working on refactoring the internals 2014-02-14 12:46:13 -05:00
Tim Griesser
4aa5bd5b0c Merge pull request #171 from tkellen/pluck
add pluck to builder interface
2014-01-28 15:28:31 -08: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
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
Nikhil Benesch
3fbaf1c2ca Add Vagrant environment configured to run tests 2014-01-19 01:07:46 -05:00
Tim Griesser
cc04badfc0 docs prep for release 2014-01-07 22:41:52 -05:00
Tim Griesser
fc69e3fbb9 hopefully valid raw mysql 2014-01-07 22:21:16 -05:00
Tim Griesser
b42d42e2bc fix for #146, allowing knex.raw in defaultTo 2014-01-07 22:12:33 -05:00
Tim Griesser
5cc47ed1ee don't assume undefined is 'where null' 2013-12-25 13:31:51 -05:00
Tim Griesser
3785575de2 shuffling around the client paths/config 2013-12-25 13:21:31 -05:00
Tim Griesser
5b5a6f62fd use bluebird nodeify, add catch/finally promise methods 2013-12-18 17:24:28 -05:00
Les Orchard
f2dd5f8305 Only use files with the correct extension for migrations 2013-12-12 08:59:35 -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
f06ee1acd2 ensure ordering on migration test 2013-11-29 12:48:25 -05:00
Ben Drucker
5c403906a3 Merge pull request #117 from valet-io/master
Additional integration testing for migrations
2013-11-29 07:03:33 -08:00
Ben Drucker
a9df0a11c7 Additional integration testing to confirm that migrations actually alter schemas as expected 2013-11-29 10:00:42 -05:00
Tim Griesser
3d898efca5 dropping 0.6 as a target version
Should still work though.
2013-11-28 11:43:47 -05:00
Ben Drucker
c3bd8bf8b1 Pass promise constructor to migrations, not a fulfilled promise 2013-11-26 16:47:13 -05:00
Tim Griesser
44854ec984 updating test output for bigint & bigserial changes 2013-11-25 12:26:28 -05:00
Tim Griesser
667a20b66e switching out underscore for lodash 2013-11-25 02:00:12 -05:00
Tim Griesser
20c7b20f73 removing listAll test and other unused tests 2013-11-25 01:45:15 -05:00
Tim Griesser
25b99f2622 Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex:
  Test for aggregate function with output name.
  Support for multiple aggregate functions.
  Failing test for #108
  Drop default output name for aggregate functions.
2013-11-25 00:55:49 -05:00
Tim Griesser
f78fc3e199 continuing work on migrations cli 2013-11-25 00:55:26 -05:00
Luigy Leon
91ce6d9121 Test for aggregate function with output name. 2013-11-23 13:18:07 -05:00
Luigy Leon
6f967003d4 Failing test for #108 2013-11-23 12:10:01 -05:00
Luigy Leon
35047912fe Drop default output name for aggregate functions. 2013-11-23 11:44:25 -05:00
Tim Griesser
64f9deb651 fixes #100, increment/decrement values 2013-11-20 09:17:08 -05:00
Kia Rahimian
d26c1b7b95 fixed bug with .having() 2013-11-19 22:47:38 -05:00
Tim Griesser
7a6937fdb3 cleanup for readability of migrations, mostly done 2013-11-02 17:39:52 -04:00
Tim Griesser
b733e01f59 fixing some issues with promises 2013-11-02 13:43:12 -04:00
Tim Griesser
065322e007 working on the migrations spec, debugging bluebird 2013-11-02 13:14:38 -04: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
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