439 Commits

Author SHA1 Message Date
Tim Griesser
5e0bcb1ea9 Merge pull request #580 from llambda/master
Support strong-oracle driver.
2014-12-18 23:52:57 -05:00
Tim Griesser
3e3cfcbaa4 Fix #597, show tables like 2014-12-18 23:41:04 -05:00
Calvin Metcalf
33e9469fe9 rm console.error 2014-12-15 12:15:10 -05:00
Elliot Foster
a812bdf0b2 Allow mysql2 to use non-default port 2014-12-02 16:10:44 -08:00
Ben Drucker
27810950ed Properly handle limit 0 2014-11-30 19:47:50 -05:00
llambda
9560058d15 Support strong-oracle 2014-11-26 17:57:24 -06:00
Philipp Waldmann
4e5d2e67dc add havingWrapped to methods 2014-11-20 20:54:12 +01:00
Philipp Waldmann
8866af423d support for nested having 2014-11-20 20:52:18 +01: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
Ben Drucker
eacb6c36c8 Merge pull request #527 from tgriesser/cli-without-env
CLI support for knexfiles that do not provide environment keys
2014-11-11 12:51:03 -05:00
Tyler Kellen
2ddbfb65c4 support creating and dropping extensions in postgresql 2014-11-08 10:14:01 -05:00
Noah Santorello
3a25c5ec58 Sample seed files now correctly return Promises tgriesser/knex#391 2014-10-13 04:12:29 -04:00
Ben Drucker
17f7f5523a Change CLI config logic to support usage without environments
Scenario 1: Environment is defined via --env or NODE_ENV
* config is config[environment]

Scenario 2: Environment is undefined but config.development is an object
* config is config.development

Scenario 3: No environment and no config.development
* config is config

Also logs out the environment in use for scenarios 1 and 2
2014-10-12 09:17:51 -04:00
Tim Griesser
b718e2da64 Relative directory config for path.resolve in #515 2014-10-03 11:14:04 -04:00
Tim Griesser
c5e87fae75 Merge pull request #515 from briandela/patch-1
Change seed generation to have same directory behaviour as migration
2014-10-03 11:12:47 -04: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
Tim Griesser
c0070891a3 Merge pull request #517 from briandela/master
Add support for specifying the postgres index type
2014-10-03 11:04:55 -04:00
Tim Griesser
776acf3f30 Fix #516, connection parameters not properly preserved 2014-10-03 11:03:34 -04:00
Brian Delahunty
9be8e7b601 Add support for specifying the postgres index type. 2014-10-02 20:56:39 -07:00
Brian Delahunty
fda990b02d Change seed generation to have same directory behaviour as migration
Change to seed behaviour to use the same path resolution as migration - essentially, replicating change SHA:b7672df53623dc9112c13120fc46eca5a48e5dd4 by @demmer
2014-10-02 11:51:52 -07:00
Tim Griesser
2ff6323f39 Support for .join(table, raw) and join using 2014-10-01 19:18:25 -04:00
Tim Griesser
239f906450 Proper fix for #510 and related 2014-10-01 18:28:30 -04:00
Tim Griesser
9bfb1cfc18 Fix regression in migration path resolution, caused by #494 2014-10-01 17:25:10 -04:00
Tim Griesser
b73a85f628 Better error handling for disconnects & pool, fix #452 2014-10-01 17:24:25 -04:00
Tim Griesser
9fe65d92d6 Bumping dependencies, adding changelog 2014-10-01 16:27:57 -04:00
Tim Griesser
b58269403d Support both array and variable arg key syntax, #485 2014-10-01 16:10:53 -04:00
Tim Griesser
5280e6e91c Handle empty array case for whereIn, fix #477 2014-10-01 15:50:48 -04:00
Tim Griesser
b4333f9fee Consistent handling of 'not' cases similar to 'or' 2014-10-01 15:22:49 -04:00
Tyler Kellen
0f9a5448dc implement support for postgres create/drop schema 2014-09-30 12:52:41 -04:00
Tim Griesser
0b5ca3563a Merge pull request #494 from jut-io/fix-migrate-absolute-paths
migration config support both absolute and relative paths
2014-09-29 11:24:58 -04:00
Tim Griesser
9f752a984d Merge pull request #495 from jut-io/fix-sqlite-insert-chunked
fix off-by-one error in sqlite insertChunked
2014-09-29 11:24:32 -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
Michael Demmer
18179bd2de fix off-by-one error in sqlite insertChunked 2014-09-18 10:59:18 -07:00
Michael Demmer
b7672df536 fix _absoluteConfigDir to support both absolute and relative paths 2014-09-18 10:49:52 -07: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
9ecd443417 Add .beginTransaction method for consistency, fix #458 2014-09-03 16:19:52 -04:00
Vincent Schoettke
4c43d69313 Enabled eqeqeq jshint restriction and fixed warnings 2014-09-03 11:04:10 +02:00
Vincent Schoettke
f67d04035c Enabled latedef jshint restriction and fixed warnings 2014-09-03 10:48:25 +02:00
Vincent Schoettke
67642ae542 Changed jshint browser option to false and fixed warning 2014-09-02 23:00:53 +02:00
Vincent Schoettke
ef173db790 Changed jshint option unused to true and fixed warnings 2014-09-02 22:56:51 +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
89973dac20 Removed jshint boss and fixed warnings 2014-09-02 21:37:58 +02:00
Tim Griesser
d4349a9cff Add default as alias for defaultTo 2014-09-02 10:54:07 -04:00
Fabian Becker
077a7e0e60 Prevent executing a query when no connection exists
no ref
2014-09-02 12:04:21 +02:00
Vincent Schoettke
f3874ac651 Fixed several jshint warnings. Added strict mode 2014-09-01 17:19:34 +02:00