Ozum Eldogan
9a27fd2da0
Documentation for whereNot, orWhereNot
...
Documentation is added for whereNot, orWhereNot
2015-02-26 18:28:10 +02: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
Tim Griesser
1411f2310a
Prep for patch 0.7.4
2015-02-25 15:36:38 -05:00
Tim Griesser
f5371cade9
Update changelog with info on 0.7 tagged release
2015-02-25 15:33:57 -05:00
Ben Drucker
9805d2863a
Fix knex ascii art
2015-02-24 14:00:04 -05:00
Tim Griesser
a717c3e86b
Merge pull request #706 from whitelynx/master
...
Fix for out-of-order parameters when using a subquery in 'from'
2015-02-24 13:35:21 -05:00
David H. Bronke
973b2fc769
Don't pass tableName through the formatter until it's needed.
...
Fixes #704 .
2015-02-24 10:15:20 -06:00
David H. Bronke
ea5c15f2aa
Added unit test for #704 .
2015-02-24 10:04:02 -06:00
Ben Drucker
d1505004b6
trx.rollback should always be passed to .catch not .then
...
Closes #705
2015-02-24 07:49:53 -05:00
Ben Drucker
4821fac983
Update lodash to 3.0 and change ~ to ^
2015-02-23 09:55:52 -05:00
Kris Reeves
84aef3bd4c
Handle postgres connection "error" and "end" events
...
Closes #659
2015-02-23 09:35:57 -05:00
Ben Drucker
d771610460
Merge pull request #474 from myndzi/fix-sqlite3-rename-column
...
Fix sqlite3 rename column
2015-02-20 10:22:11 -05:00
Ben Drucker
cfeb1008d2
Merge pull request #697 from thomasdashney/master
...
Fix migration bug where database is empty
2015-02-20 07:26:52 -05:00
Thomas Dashney
e960214271
fixed migration bug where it errors out when migrations table is empty
2015-02-19 22:07:52 -05:00
Tim Griesser
3c1cfe5851
Merge pull request #693 from myndzi/pool2
...
Use Pool2 instead of Generic-pool-redux
2015-02-19 21:48:24 -05:00
Kris Reeves
dc5f32ad20
Override pool.release for oracle too. Uncertain if client.close is async, so pretending it's sync.
2015-02-19 12:13:42 -05:00
Kris Reeves
abd5701458
Make jshint aware of 'before' and 'after' globals
2015-02-19 12:08:02 -05:00
Kris Reeves
617c36cfc7
New tests showed a flaw in mysql code, fix it
2015-02-19 12:08:02 -05:00
Kris Reeves
1d1c6b9360
Supporting tests
2015-02-19 12:08:02 -05:00
Kris Reeves
851493ae04
Better column rename and delete logic
2015-02-19 12:08:01 -05:00
Kris Reeves
12ce5d74f1
Fix reference
2015-02-19 11:53:57 -05:00
Kris Reeves
dff5a1409a
Use Pool2 instead of Generic-pool-redux
2015-02-19 11:50:43 -05:00
Ben Drucker
5b6f897866
Merge pull request #692 from oliverzy/master
...
Allow --debug flag to be passed to CLI calls
2015-02-18 07:02:43 -05:00
Yujie Zhou
2577663667
[Knex CLI] Fix debug option doesn't work
2015-02-18 13:09:45 +08:00
Ben Drucker
d6dc4d2dee
Don't warn for SQLite with create if not exists
...
Closes #689
2015-02-13 15:00:32 -05:00
Ben Drucker
01f5ce4972
Merge pull request #685 from oliverzy/master
...
[Knex CLI] Support V8 Flags such as --harmony, etc
2015-02-13 06:47:27 -05:00
Yujie Zhou
99ba1cef99
[Knex CLI] Support V8 Flags such as --harmony, etc
2015-02-13 18:00:49 +08:00
Ben Drucker
c199761c59
Merge pull request #641 from gjvargas/fdbsql_adapter
...
FoundationDB SQL Layer Adapter
2015-02-10 18:28:08 -05:00
Tim Griesser
d1d11f1091
Merge pull request #660 from werkt/union_wrap_ignored
...
Respect union wrap parameter as last argument
2015-02-09 10:45:01 -05:00
Ben Drucker
1c37f76020
Apply promise args from then instead of explicitly passing
...
See https://github.com/petkaantonov/bluebird/issues/482
2015-02-07 12:20:24 -05:00
Ben Drucker
342766cb1b
Disable building on Node 0.11
...
sqlite3 has an unpublished fix:
https://github.com/mapbox/node-sqlite3/pull/369
Right now this causes npm install to fail and so the 0.11 job is
meaningless. This can be reverted when sqlite3 can be built on
node > 0.10 and iojs.
2015-02-07 12:05:18 -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
Ben Drucker
8c8fcb5b29
Clarify ability to use .returning() with updates
...
Closes #654
[ci skip]
2015-01-30 19:38:50 -05:00
Ben Drucker
dd8f4f97ad
col.inTable should be called after col.references
...
Closes #645
[ci skip]
2015-01-26 19:56:24 -05:00
Stephan Schneider
06d3383c11
Uses knex.client.dialect instead of hacky knex.toString()
2015-01-23 15:43:14 +01:00
Ben Drucker
8c7af46439
Merge pull request #630 from djmadcat/feature/fix_sqlite_drop_last_column
...
Fix SQLite dropColumn doesn't work for last column
2015-01-18 18:34:38 -05:00
Alexey Aleshkov
41e747f664
Fix SQLite dropColumn doesn't work for last column ( fixes #544 )
2015-01-18 23:53:17 +03: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
bd6954b6d1
Pass parameter
flag to outputQuery()
as alwaysWrapped
.
...
Fixes #627 .
2015-01-15 16:07:04 -06:00
David H. Bronke
ab4713d63f
Added unit test for #627 .
2015-01-15 16:05:34 -06:00
Ben Drucker
d27a458b86
Merge pull request #623 from yanarchy/master
...
Small grammatical change in index.html ("its self" >> "itself")
2015-01-12 17:24:35 -05:00
Yan Fan
66baf96237
Small grammatical change in index.html ("its self" >> "itself")
...
Changed "its self" to "itself" under "Initializing the Library."
2015-01-12 12:33:15 -08: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
Stephan Schneider
22044df685
warnPromise receives return from migration
2015-01-09 10:57:14 +01:00
Stephan Schneider
49b833014c
Wraps migrations in transations
2015-01-08 23:53:11 +01:00