49 Commits

Author SHA1 Message Date
Christiano Marques
a481dde82c
feat: new config parameter / CLI flag to prefixing seed filename with a timestamp (#3873) 2020-09-19 16:11:05 +03:00
Mr D
907cc763f6
#3978 Improve mjs module support (#3980) 2020-08-15 17:54:43 +03:00
Mathieu DARTIGUES
f3c73ccd58
Add new option for seed : recursive (#3974) 2020-08-10 15:10:37 +02:00
Mathieu DARTIGUES
ab7644425d
Support multiple directories for seeds (#3967) 2020-08-08 15:21:43 +03:00
maximelkin
93f3f0ed11
rewrite delay to not node-only version (#3820) 2020-04-24 23:52:00 +02:00
Igor Savin
e37aeaa31c
Prepare for 0.21.0 release (#3811) 2020-04-19 00:40:23 +02:00
tkalliom
02d94d96b0
Reduce size of lodash in bundle (#3804) 2020-04-18 19:41:23 +02:00
Brian Lauber
8d5715a03a
Fix: Support for .finally(..) on knex's Promise-alikes (#3800) 2020-04-15 21:05:40 +02:00
Kabir Baidhya
a6551559f0
Minor improvements on the usage of fs utilities - unify all the fs functions into the same util/fs to simplify things (#3749) 2020-03-24 15:50:47 +01:00
Igor Savin
e552fbda78
Make protocol length check more defensive (#3744) 2020-03-22 23:51:42 +01:00
Kabir Baidhya
a7031c3cef
Upgrade package mkdirp and improve it's usage (#3741) 2020-03-21 11:01:10 +01:00
Brian Lauber
37d9c30347
Fix/method binding on knex proxy (#3717)
* knex methods are proxies for context methods ...

... as opposed to injecting the methods directly onto the knex
function.  (Which was then causing `this` to point to the wrong
object when evaluating the context methods)

* Moved CONTEXT_METHODS constant to a higher scope

* mv knex.context -> this.context

* Extracted KNEX_PROPERTY_DEFINITIONS to module scope ...

... which was possible since all of the properties reference
`this` instead of `knex` now

* shallowCloneFunction no longer accesses _context ...

... instead, it uses the normal context property

* transaction method delegates to _transaction ...

... This way, we can be sure that the lower-level details are
consistent across implementations.  Individual implementations
just need to handle the quirks around setting up the `config`
and `outerTx`

* CONTEXT_METHODS shared. Fixed override of withUserParams ...

Restructured the code so that CONTEXT_METHODS populates the
KNEX_PROPERTY_DEFINITIONS with the proxy methods.

In doing so, it also exposed the fact that the withUserParams(..)
method was being overridden on the Transactor instead of its
context.  So, that bug was fixed as well.

* Added a TODO to remove client.makeKnex(..) in future PR

* Added a warning about QueryBuilder.extend(..) and side-effects
2020-03-11 16:05:03 -04:00
Igor Savin
46783590be
timeout(..) function clears unnecessary timeouts (#3703) 2020-03-05 21:37:23 +01:00
maximelkin
b025aea318
remove dependency on bluebird methods from sources (#3683)
Co-authored-by: Brian Lauber <constructible.truth@gmail.com>
2020-02-25 22:50:24 +01:00
Brian Lauber
f3151bdc93
Cleanup and extract Transaction Workflow logic (rebase) (#3674) 2020-02-20 20:44:18 +01:00
maximelkin
88d832cd36
replace Bluebird.timeout (#3634) 2020-02-12 21:42:15 +01:00
Igor Savin
c14252d907
Refactor more tests to use cli-testlab (#3640) 2020-01-28 02:28:40 +01:00
Ahmed Ashour
a613fe23df Fix some spelling mistakes (#3572) 2019-12-10 22:53:05 +01:00
Andrei
07276bcbbb Add connection string qs to connection params (#3547) 2019-11-21 15:21:51 +01:00
Igor Savin
1c65562440 Prepare 0.20.0 release 2019-10-25 20:17:26 +02:00
Lorefnon
b0c0db601a Fix some issues around seed and migration generation (#3479) 2019-10-13 13:19:53 +02:00
maximelkin
f56eaf5cfc Bluebird remove map mapSeries (#3474) 2019-10-11 10:12:56 +02:00
Ricardo Graça
9aa7085b05 Rename src directory to lib (#3338) 2019-07-10 23:48:43 +02:00
Mikael Lepistö
7140a48226 Remove generated lib from repository and run build in prepublish 2016-01-21 09:59:30 +02:00
Tim Griesser
43dbdadb90 Remove invalid JoinClause require from mssql index.js 2015-12-15 16:54:43 -05:00
Dustin Martin
d9ac2c1f8f Add status method
Returns 0 if all migrations are run and DB is up to date. Return negative number if DB is missing migrations. Return positive number if DB is ahead (rare case, e.g. if migrations were run then code is reverted)
2015-11-23 10:50:19 -06:00
Mikael Lepistö
e2eacc7d6e Ran 'npm run build' since tape tests would not pass if build is not updated. 2015-11-10 23:27:26 +02:00
Rhys van der Waerden
360ffc77d3 release 0.9.0 2015-11-02 14:54:38 +11:00
harriha
478b03e106 Update lib/ via running 'npm run dev' 2015-08-30 23:34:09 +03:00
Mikael Lepistö
fef0a09197 Did npm run build 2015-08-25 10:23:34 +03:00
Tim Griesser
421cb4f4eb Commit compiled files 2015-06-01 09:17:11 -04:00
Tim Griesser
edefe53df9 Better fix for #852 2015-06-01 07:55:04 -04:00
Tim Griesser
90105e064f Fix #852, parse qs parameters for connection 2015-06-01 07:39:57 -04: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
Tim Griesser
ee388d3bb9 release 0.8.4 2015-05-13 15:23:15 -04:00
Tim Griesser
7e884cb325 Babel src -> lib, remove gulp 2015-05-09 13:58:18 -04:00
Tim Griesser
ff0782a71f Move noop to util 2015-05-04 10:21:42 -04:00
Tim Griesser
f93be5e6b2 release 0.8.3 2015-05-02 13:14:32 -04:00
Tim Griesser
2ed591dc06 release 0.8.2 2015-05-01 14:55:53 -04:00
Tim Griesser
564e520fa3 release 0.8.1 2015-05-01 11:59:02 -04:00
Tim Griesser
ff76297506 Normalize connection config, fix #789 2015-04-29 15:14:41 -04:00
Tim Griesser
8758d5679c Fix #780, allow connection strings without specifying a client 2015-04-24 14:57:35 -04:00
Tim Griesser
ebcc22176f Make websql transaction api similar to others, jshint cleanup 2015-04-24 12:44:01 -04:00
Tim Griesser
3e47fafbe8 Cleaning up build process, WebSQL dialect 2015-04-24 12:19:33 -04:00
Tim Griesser
46e318d6da Cleaning up transactions, passing options arg to pipe 2015-04-23 14:51:33 -04:00
Tim Griesser
e570c167c1 JSHint and formatting 2015-04-22 15:39:29 -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