167 Commits

Author SHA1 Message Date
Tim Griesser
01bae6a598 Add disableTransactions option, #834 2015-05-20 11:08:27 -04:00
Tim Griesser
ff76297506 Normalize connection config, fix #789 2015-04-29 15:14:41 -04:00
Tim Griesser
471b2bae8f Bump sqlite3 test dependency for 0.12 2015-04-28 23:32:41 -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
7b17cc404a Oracle test suite up to date 2015-04-27 20:22:05 -04:00
Tim Griesser
f735dcb9c8 Raw identifiers and named parameters
Adds ?? for interpolating identifiers in raw
statements. Also adds raw(sql, obj) for
named :key syntax. Alternatively, 🔑
(trailing colon) may be used to specify an
identifier as a parameter.
2015-04-27 15:58:48 -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
918f6056d1 Nested transactions, needs explicit tests 2015-04-23 16:04:48 -04:00
Tim Griesser
46e318d6da Cleaning up transactions, passing options arg to pipe 2015-04-23 14:51:33 -04:00
Tim Griesser
c8232d11d3 Merge with master, cleanup on mysql2/maria 2015-04-22 16:19:59 -04:00
Tim Griesser
34b6bd4076 Merge pull request #788 from zcei/feature/migrations-transaction
Wraps migrations in transations
2015-04-22 15:52:52 -04:00
Tim Griesser
e570c167c1 JSHint and formatting 2015-04-22 15:39:29 -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
Tim Griesser
27cd9f12c5 Cleanup pool implementation, preparing things for new release 2015-04-17 15:00:08 -04:00
Ben Drucker
7cdda834ef Remove FoundationDB
Reverts c199761c597c93136a6d38bc4ecf26a693560322 and #641

Foundation was acquired and shut down immediately
2015-03-24 17:48:14 -07:00
Tim Griesser
13995d6936 Fix #737, proper escaping for identifiers 2015-03-13 01:17:32 -04:00
Kris Reeves
1d1c6b9360 Supporting tests 2015-02-19 12:08:02 -05:00
Nathan Williams
2d6d2f28f7 Adapter for FoundationDB SQL Layer 2015-02-04 14:56:41 -05:00
Stephan Schneider
06d3383c11 Uses knex.client.dialect instead of hacky knex.toString() 2015-01-23 15:43:14 +01:00
Stephan Schneider
9159a4a5dc Makes transaction test MySQL comliant 2015-01-09 14:57:37 +01:00
Stephan Schneider
fa7ff8cd23 Adds tests for transaction-based migrations 2015-01-09 11:00:55 +01:00
Vincent Schoettke
5c7d106283 join columns now optional. Fixes #504 2014-09-29 10:05:53 +02:00
Vincent Schoettke
72cf342273 Fixes #319. Inserting multiple rows with default values 2014-09-08 16:10:43 +02:00
Tim Griesser
d77debbaa8 Properly remove seed test file to prevent jshint warning 2014-09-03 16:18:22 -04:00
Vincent Schoettke
4c43d69313 Enabled eqeqeq jshint restriction and fixed warnings 2014-09-03 11:04:10 +02:00
Vincent Schoettke
8b2084f892 Added jshint newcap and undef options and fixed warning 2014-09-02 23:07:46 +02:00
Vincent Schoettke
ef173db790 Changed jshint option unused to true and fixed warnings 2014-09-02 22:56:51 +02:00
Vincent Schoettke
b86f25b727 Removed jshint sub and fixed warnings 2014-09-02 22:25:02 +02:00
Vincent Schoettke
a373905171 Removed jshint eqnull and fixed warnings 2014-09-02 22:19:22 +02:00
Vincent Schoettke
98f4f9a1dd Removed jshint expr and fixed warnings 2014-09-02 22:03:14 +02:00
Vincent Schoettke
f3874ac651 Fixed several jshint warnings. Added strict mode 2014-09-01 17:19:34 +02:00
Vincent Schoettke
00a41a0bb2 Fixed offset without limit for mysql and sqlite3 2014-08-28 13:53:39 +02: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
Vincent Schoettke
f545c86081 oracle - fixed first and added more tests 2014-08-22 01:13:15 +02:00
Vincent Schoettke
04ddae3fda oracle - fixed SQL for dropping multiple columns 2014-08-21 00:17:49 +02:00
Tim Griesser
75be73c45e Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex:
  oracle - fix returning for non-integer types
  oracle - fixed create if not exists
2014-08-20 14:20:47 -04:00
Vincent Schoettke
2eaedd0afa oracle - fix returning for non-integer types 2014-08-20 09:34:32 +02:00
Tim Griesser
ac984b9e9b Add .joinRaw and remove deprecated join notices 2014-08-14 18:02:50 -04:00
Tim Griesser
a768c7881b Fix #398, #410, escape field with enum / postgres 2014-08-14 15:45:15 -04:00
Vincent Schoettke
0ba6b49495 oracle - added support for multiple returning values 2014-08-13 21:53:42 +02:00
Vincent Schoettke
d85a13a6f6 Reverted mysql overlapping join test 2014-08-13 21:53:42 +02:00
Vincent Schoettke
9ef99b5f92 Added oracle support 2014-08-13 21:53:42 +02:00
Tim Griesser
8cfd8df117 Merge pull request #396 from sweetpi/master
Don't use "collate nocase" in sqlite order by, because it makes things t...
2014-08-11 10:18:07 -04:00
Tim Griesser
5b876d6732 Merge pull request #391 from nsantorello/master
Database seed file support
2014-08-11 10:17:40 -04:00
Andrew Hutchings
cecba8bfe1 Fix typo 2014-07-27 14:45:33 -04:00
Oliver Schneider
542d91bae2 Fix for test adaption 2014-07-26 09:06:48 +02:00
Noah Santorello
97c8c820e6 Made migration CLI tasks output absolute paths 2014-07-21 19:48:31 -04:00
Noah Santorello
4edc976880 Finally seed tests green. 2014-07-21 19:33:42 -04:00