994 Commits

Author SHA1 Message Date
Tim Griesser
8758d5679c Fix #780, allow connection strings without specifying a client 2015-04-24 14:57:35 -04:00
Tim Griesser
3e47fafbe8 Cleaning up build process, WebSQL dialect 2015-04-24 12:19:33 -04:00
Tim Griesser
0c0864761c Test and fix for #749 2015-04-24 10:31:23 -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
f662bca81d Merge pull request #588 from shutterstock/fix/mysql2-can-use-other-port
Allow mysql2 to use a non-default port
2015-04-22 15:53:18 -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
26726c728b Fixing test config 2015-04-22 12:11:23 -04:00
Tim Griesser
865fa6a1fe Putting the old dir structure back 2015-04-22 11:52:34 -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
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
Tim Griesser
5160508924 Merge pull request #715 from ozum/master
whereNot and orWhereNot added
2015-03-30 09:26:50 -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
e9782a8932 Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex:
  Allow debugging to be disabled for a query
  fix float for oracle dialect. fixes #735
2015-03-13 01:33:36 -04:00
Tim Griesser
13995d6936 Fix #737, proper escaping for identifiers 2015-03-13 01:17:32 -04:00
Vincent Schoettke
505b019eaf fix float for oracle dialect. fixes #735 2015-03-12 20:34:50 +01: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
David H. Bronke
ea5c15f2aa Added unit test for #704. 2015-02-24 10:04:02 -06:00
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