Dmitrii Maganov
a0e9be548d
Fix return duplicate transaction promise for standalone transactions ( #3328 )
2019-07-04 22:05:23 +02:00
Bo Lingen
2463e077e8
Fix comments that were modified by find & replace ( #3308 )
...
The find & replace of ES module import syntax to cjs `require`s in #3227 modified some comments.
2019-06-26 08:31:23 +02:00
Igor Savin
2ccaf3d724
Remove bluebird promises from typings. Do not pass promise to migrations and seeds. Remove knex.Promise ( #3266 )
2019-06-08 01:16:34 +02:00
Igor Savin
c431ffc35a
Drop support for Node.js 6. Remove babel. ( #3227 )
2019-06-04 00:37:17 +02:00
Igor Savin
5307dacc66
Implement support for returning started transaction without using transaction() methods callback function ( #3099 )
2019-05-26 18:03:07 -07:00
Igor Savin
26868f864c
Fix event listener duplication ( #2982 )
...
* Fix event listener duplication. Start executing more tests in CI; fix broken test.
* Fix listener
* Fix listener
* Fix Node 6 support
* There doesn't seem to be a clear way to fix listener behaviour in Node 6, so let's just ignore it for the time being, especially considering that we are dropping support for Node 6 in April anyway.
* Update migration guide
2019-01-31 07:23:05 +02:00
Igor Savin
9daf7f3d09
Display name of a failed seed ( #2973 )
2018-12-27 18:20:13 +01:00
Igor Savin
1cd1f079f8
Apply postprocessing in migrations ( #2934 )
...
Apply postprocessing in migrations
2018-12-03 23:47:09 +01:00
Igor Savin
1eac063b28
Do not postprocess internal queries in Migrator ( #2914 )
...
* Do not postprocess internal queries in Migrator
* Fixes
* Fix var -> const autofix
* Fix regression
2018-11-19 12:55:50 +01:00
Igor Savin
d4a3387c56
Pass migration config object as an argument to the migrations (V 2.0) ( #2802 )
...
* Pass migration config object as an argument to the migrations themselves, to allow custom parameters to be set for migrations. (#2014 )
* Run prettier
* Remove unneeded change
* Remove more unneeded changes
* Fix Node 10 support
* Update documentation based on a new design
* Restore test execution (oops)
* Fix withUserParams method
* Fix knex instance cloning
* Remove unused import
* Fix reference to knex from migrator
* Do not lose user params on transactions
* Remove unneeded require
* Address review comments
* Fix setting event emitter and listeners on Knex copies. Use knex copies to run tests in CI
* Remove knex cloning
* Fix event listener leak
2018-09-26 23:27:59 +03:00
Igor Savin
91f23bc02f
Feature/2690: Multiple migration directories ( #2735 )
...
* Implement support for multiple migration directories
* Add tests for new functionality
* Fix tape tests
* Pass migration directory upwards
* Fix multiple directory support
* Fix bugs
* Rollback correctly
* Fix remaining tests
* Address comments
2018-08-24 12:39:20 +03:00
Tim Griesser
232fe9f151
Add Prettier ( #2697 )
...
* Add prettier
* Run files through prettier
2018-07-09 08:10:34 -04:00
Pablo M
a41316bb34
Fix knex.initialize() and adds test ( #2477 )
...
* Fix knex.initialize() and adds test
* Fix knex.initialize() and adds test
* Added test for reinitializing pool after destroy
* Fixed destroy / reinitialization test
* Fixed the fix
2018-07-02 23:52:32 +03:00
Simon Lidén
65509c38ef
Allow overwriting log functions ( #2625 )
...
* Example build of custom log functions
* Handle logger object better for transactions
* Adjust test to ignore sqlite warning message
2018-05-29 11:42:03 -04:00
Simon Lidén
e724066fcb
Added 'ref' function ( #2509 )
...
* Added 'ref' function
* Fixed Ref export
* Added .as() for aliasing references
2018-05-02 13:31:16 +03:00
wubzz
50557f7571
Ensure errors in batchInsert do not end up 'unhandled'. Fixes #1880 ( #1984 )
2017-03-22 21:44:36 +01:00
Tomás Pinho
7de07c966a
ONLY keyword support for PostgreSQL ( #1874 )
...
* adding support for ONLY keyword for PostgreSQL as an optional flag of from() and into() through table(tableName, only)
* passing only parameter from default function was missing
* changing only option to options object with only key
* better style per @wubzz suggestion
2017-01-26 18:22:09 +02:00
Tim Griesser
db9b54946b
release 0.12.6
2016-10-19 15:12:54 -04:00
Tim Griesser
834bc6eeaf
Update changelog
2016-10-12 10:22:49 -04:00
Tim Griesser
45ef9dbd62
release 0.12.2
2016-09-27 13:53:31 -04:00
Tim Griesser
7069ce509e
Revert to generic pool ( #1665 )
2016-09-13 18:12:23 -04:00
Tim Griesser
30342c32ae
Simplify formatter use
2016-09-12 18:27:30 -04:00
Tim Griesser
f05b12f123
Deprecate VERSION, update changelog
2016-09-12 18:11:56 -04:00
Tim Griesser
6fa485302b
Bluebird cleanup ( #1618 )
...
* Reference Bluebird directly, Remove deprecated .exec method
* Remove outdated bench scripts
* Remove old .jshintrc file
2016-08-09 17:23:07 -04:00
Mikael Lepistö
2fd63a7868
Fix webpack build error 'dependency to an entry point is not allowed'
2016-05-29 09:16:47 +03:00
Kaarel Raspel
6cbceefdb8
Inherit knex instance VERSION property from constructor
2016-05-19 23:48:24 +03:00
Rhys van der Waerden
2acd6e5daa
Make spaces in import braces consistent
...
`import {module}` -> `import { module }`
2016-05-18 20:22:50 +10:00
Rhys van der Waerden
ba3ba382e7
Remove unnecessary function wrapper
2016-05-18 20:09:51 +10:00
Rhys van der Waerden
06e3447440
Remove duplicate spaces in assignments.
...
These were previously horizontally aligned. The esnext conversion disrupted them all.
2016-05-18 19:59:24 +10:00
Rhys van der Waerden
3846b7182c
Make codebase conform to ESLint rules
...
Just a couple of changes.
2016-05-17 01:01:34 +10:00
Rhys van der Waerden
f320906577
Read version from package.json
...
Means that it's impossible to have `Knex#VERSION` and the version in `package.json` out of sync. This is one less thing to do for release.
This required the addition of `json-loader` for webpack. I've also added webpack to `devDependencies` rather than installing it manually during the `build` script.
2016-05-15 21:38:34 +10:00
Rhys van der Waerden
05969f07aa
Prepare for 0.11.3 release
2016-05-14 11:23:30 +10:00
Rhys van der Waerden
e491212c6b
Prepare for 0.11.2 release
2016-05-14 10:30:05 +10:00
wubzz
9b37eb4c1a
Cleanup code
2016-05-10 08:41:06 +02:00
wubzz
2f44a48fa8
BatchInsert remake proposal. Fixes #1391
2016-05-09 19:01:00 +02:00
Rhys van der Waerden
d7ffaed2be
Prepare for release
2016-05-06 18:22:48 +10:00
Rhys van der Waerden
415d0084a3
Prepare for 0.11.0
2016-05-05 22:43:04 +10:00
wubzz
1d27fb8550
Update lodash from 3.7.0 -> 4.6.0
2016-03-15 18:11:13 +01:00
Jurko Gospodnetić
c9df3f2195
add missing dots at ends of comments in util/make-knex.js (stylistic)
2016-03-09 07:01:15 +01:00
wubzz
840d2d1299
Add 'query-response' event. Fixes #1203
2016-02-26 19:51:35 +01:00
Mikael Lepistö
ce6ada96e3
batchInsert batchSize parameter validation
2016-02-11 11:49:55 +02:00
Mikael Lepistö
e6268dc348
Default batch size 1000 for batchInsert and validate batch size parameter to be > 0
2016-02-11 08:36:50 +02:00
Rhys van der Waerden
cadbe6adc7
Prepare for 0.10.0
2016-02-08 22:44:46 +11:00
wubzz
e2716aa219
Simplify batchInsert's return statement, -promise
2016-02-03 22:59:09 +01:00
wubzz
8fc6962ab1
Add a knex.batchInsert as discussed in #757
2016-02-02 21:19:36 +01:00
wubzz
9c3bf330d9
Add a new event 'query-error' for when an error occurs.
2016-01-28 19:57:26 +01:00
Brian Black
c6230568cd
SqlString is now per-dialect
2015-11-29 18:44:12 -05:00
Rhys van der Waerden
360ffc77d3
release 0.9.0
2015-11-02 14:54:38 +11:00
Tim Griesser
89fe76faa3
release 0.8.6
2015-05-20 11:21:59 -04:00
Tim Griesser
e024fa6b87
release 0.8.5
2015-05-14 00:45:51 -04:00