Kris Reeves
1d1c6b9360
Supporting tests
2015-02-19 12:08:02 -05:00
Ben Drucker
c199761c59
Merge pull request #641 from gjvargas/fdbsql_adapter
...
FoundationDB SQL Layer Adapter
2015-02-10 18:28:08 -05:00
Nathan Williams
2d6d2f28f7
Adapter for FoundationDB SQL Layer
2015-02-04 14:56:41 -05: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
Stephan Schneider
06d3383c11
Uses knex.client.dialect instead of hacky knex.toString()
2015-01-23 15:43:14 +01:00
Ben Drucker
9767fdce69
Merge pull request #628 from whitelynx/master
...
Fix bare subqueries in insert statements.
2015-01-15 17:18:28 -05:00
Ben Drucker
13f52ff219
Document and test use of literals in joins via knex.raw
...
Closes #626
2015-01-15 17:13:05 -05:00
David H. Bronke
ab4713d63f
Added unit test for #627 .
2015-01-15 16:05:34 -06: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
Elliot Foster
e749fef801
Excercise mysql2 via the test suite
2014-12-02 16:24:34 -08:00
Ben Drucker
27810950ed
Properly handle limit 0
2014-11-30 19:47:50 -05:00
Philipp Waldmann
8866af423d
support for nested having
2014-11-20 20:52:18 +01:00
Ben Drucker
ffe736e4af
Use chai throw assertions instead of manual try catch
2014-11-14 12:25:44 -05:00
Ville Lahdenvuo
2961bb1ed4
Add POSIX operator support for Postgres
...
Closes #562 , Closes #561
2014-11-14 12:21:36 -05:00
Rune Halvorsen
fc0f9feaaa
Added sqlite3 dialect version of whereRaw/andWhereRaw
...
* SQLite uses integers, not booleans
* whereIn/whereNotIn with empty array uses a boolean
* Closes #477
2014-11-12 12:23:01 -05:00
Tyler Kellen
2ddbfb65c4
support creating and dropping extensions in postgresql
2014-11-08 10:14:01 -05:00
Tim Griesser
b7ea97ae5c
Merge pull request #512 from tgriesser/join-using
...
Support for .join(table, raw) and join using
2014-10-03 11:06:44 -04:00
Brian Delahunty
f73b62577a
Add additional unit test to cover case where no index name is specified in fluent version
2014-10-02 21:03:24 -07:00
Brian Delahunty
9be8e7b601
Add support for specifying the postgres index type.
2014-10-02 20:56:39 -07:00
Tim Griesser
2ff6323f39
Support for .join(table, raw) and join using
2014-10-01 19:18:25 -04:00
Tim Griesser
b58269403d
Support both array and variable arg key syntax, #485
2014-10-01 16:10:53 -04:00
Tim Griesser
3d22ab2499
Add where(bool) test
2014-10-01 16:10:06 -04:00
Tim Griesser
5280e6e91c
Handle empty array case for whereIn, fix #477
2014-10-01 15:50:48 -04:00
Tim Griesser
eeb3b368d7
Merge pull request #500 from tgriesser/jsonb
...
Allow jsonb columns to be created with the schema builder
2014-09-29 11:24:04 -04:00
Vincent Schoettke
5c7d106283
join columns now optional. Fixes #504
2014-09-29 10:05:53 +02:00
Ben Drucker
40effe848a
Allow jsonb columns to be created with the schema builder
...
Closes #499
2014-09-22 12:25:28 -04:00
Flux Xu
7c5411db8f
Fix SQLite composite primary key
2014-09-12 17:21:36 -04: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
Tim Griesser
d4349a9cff
Add default as alias for defaultTo
2014-09-02 10:54:07 -04:00
Vincent Schoettke
f3874ac651
Fixed several jshint warnings. Added strict mode
2014-09-01 17:19:34 +02:00
Vincent Schoettke
6f2da84df9
Removed unused/outdated schema test for sqlserver
2014-09-01 16:14:22 +02:00
Vincent Schoettke
8f5ccc1e45
Fix #440 , orderBy with raw argument should use direction
2014-09-01 14:16:07 +02:00
Tim Griesser
4fffee9b73
Enable SQLite3 fixed tests
2014-08-31 14:10:23 -04:00
Tim Griesser
f965648225
Fix subquery insert for sqlite3
2014-08-31 14:07:58 -04:00
Tim Griesser
1bc6293353
JOINs should not work with update in sqlite
2014-08-31 14:01:53 -04:00
Tim Griesser
886634eb02
Fix #441 , raw in first argument of join
2014-08-31 12:20:31 -04:00
Vincent Schoettke
393769b80d
Merge pull request #445 from vschoettke/sqlite3-fix-raw-order-by
...
sqlite3 - fixed raw order bys
2014-08-28 21:45:07 +02:00
Vincent Schoettke
5c7e0ae329
Merge pull request #447 from vschoettke/fixed-close-in-integration-tests
...
Fixed integration tests not closing connections
2014-08-28 20:59:04 +02:00
Vincent Schoettke
36282de16b
Fixed integration now close connections
2014-08-28 20:50:44 +02:00
Vincent Schoettke
f3bff2d8ab
Merge pull request #446 from vschoettke/fix-offset-without-limit
...
Fixed offset without limit for mysql and sqlite3
2014-08-28 20:22:43 +02:00
Vincent Schoettke
00a41a0bb2
Fixed offset without limit for mysql and sqlite3
2014-08-28 13:53:39 +02:00