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
871b50b5aa
Cleaning up WebSQL & Oracle transaction implementations
2015-04-22 15:24:29 -04:00
Tim Griesser
7dfad30ff0
browserify -> webpack
2015-04-22 14:53:31 -04:00
Tim Griesser
26726c728b
Fixing test config
2015-04-22 12:11:23 -04:00
Tim Griesser
b2a358ec84
Cleanup in schema building
2015-04-22 11:45:28 -04:00
Tim Griesser
2bc85cb7a5
Pool should be 1 for sqlite3 unless WAL is enabled
2015-04-22 11:45:12 -04:00
Tim Griesser
f4a6b4afa4
Fix undefined warn
2015-04-22 11:44:52 -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
Calvin Metcalf
4c7417af08
return when Client.prototype.destroy resolves
...
Closes #775
2015-04-16 15:40:27 -04:00
Calvin Metcalf
c00ff3d814
Allow t.binary to specify a length for MySQL
...
Closes #774
2015-04-16 15:39:02 -04:00
Chris Papazian
6bad04aa2b
Don't use camelCase in aliased column names
...
Change the query that gets the max batch to be all lowercase to support databases that don't allow cased names.
2015-04-01 14:58:52 -07: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
Hanam Do
c57facd3a7
Use 2 space indentation for seed stubs
...
Consistent with indentation for migrations
Closes #745
2015-03-22 11:57:14 -07:00
Vincent Schoettke
5cd47fab98
Fixed returning bug with oracle
...
Fixes non working returning() with oracle introduced with #580 (strong-oracle support)
2015-03-16 10:04:49 +01: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
Kagami Hiiragi
c26466dea8
Allow debugging to be disabled for a query
...
Closes #725 , Closes #728
2015-03-12 17:26:57 -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
973b2fc769
Don't pass tableName through the formatter until it's needed.
...
Fixes #704 .
2015-02-24 10:15:20 -06: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
Thomas Dashney
e960214271
fixed migration bug where it errors out when migrations table is empty
2015-02-19 22:07:52 -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
617c36cfc7
New tests showed a flaw in mysql code, fix it
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
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
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
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
Alexey Aleshkov
41e747f664
Fix SQLite dropColumn doesn't work for last column ( fixes #544 )
2015-01-18 23:53:17 +03:00
David H. Bronke
bd6954b6d1
Pass parameter
flag to outputQuery()
as alwaysWrapped
.
...
Fixes #627 .
2015-01-15 16:07:04 -06: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
Ben Drucker
d56536c1b4
Warn when a migration does not return a promise
2015-01-04 08:47:11 -05:00
Ben Drucker
52e2403c29
Merge pull request #586 from tgriesser/limit-0
...
Properly handle limit 0
2014-12-22 21:44:24 +01:00