893 Commits

Author SHA1 Message Date
Igor Savin
5f34fc170a Documentation cleanup
Co-authored-by: Greg Gorlen <ggorlen@users.noreply.github.com>
2020-12-27 16:30:40 +02:00
Igor Savin
6a862e9459
Extract query execution-related code from client (#4175) 2020-12-27 15:19:47 +02:00
Bogdan Chadkin
c54cded69d
Drop liftoff (#4122) 2020-12-26 19:29:46 +02:00
Rijk van Zanten
9692e36561
Add primary/foreign support to SQLite on alterTable (#4162)
Co-authored-by: Igor Savin <iselwin@gmail.com>
2020-12-26 19:10:40 +02:00
Igor Savin
938d5c263a Add more debug output for dialect resolution 2020-12-25 20:33:06 +02:00
Igor Savin
ad41e1c0f4
Minor code improvements (#4167) 2020-12-20 01:43:36 +02:00
Igor Savin
1211152f07
Extract knex config resolution logic (#4166) 2020-12-19 16:44:15 +02:00
Kkmatt11
629909475c
Fix MSSQL with returns on inserts and deletes on tables with triggers (#4152) 2020-12-18 01:12:04 +02:00
Duc Nghiem Xuan
5e95a6afb8
Make sure query-response and query-error events contain _knexTxId (#4160) 2020-12-14 11:10:20 +02:00
Snir Shechter
1975899c9c
Bugfix: Uses esm import if package.json type is module (#4158) 2020-12-14 01:09:43 +02:00
Igor Savin
3394a02935
Avoid connection getting stuck on socket hangup (#4157) 2020-12-11 23:56:14 +02:00
Ivan Starkov
84cee6c445
Fix performance of asyncStackTraces with enable-source-maps node flag (#4154) 2020-12-11 13:19:03 +02:00
Shunsuke Mano
4c42fa2520
Fix(seed:run): irregular seed file execution order (#4156) 2020-12-11 13:18:03 +02:00
Mark Boyd
76c131e2a9
Add support for WHERE clauses to "upsert" queries (#4148) 2020-12-09 17:51:29 +02:00
Rijk van Zanten
b7e1ffd7d5
Add support for dropForeign in SQLite (#4092)
Co-authored-by: Igor Savin <iselwin@gmail.com>
2020-12-08 14:49:41 +02:00
Igor Savin
c47e00de64
Support non-standard Oracle port (#4147) 2020-12-08 00:47:00 +02:00
Nico Burns
8d43019873
Implement "UPSERT" (Postgres/MySQL/Sqlite) (#3763) 2020-10-31 17:22:52 +02:00
Igor Savin
26f3e5d62d
Replace uuid with copied nanoid logic (#4089) 2020-10-30 14:21:17 +02:00
Igor Savin
3246c1f9fa
Add missing event propagation (#4087) 2020-10-29 12:02:03 +02:00
Ivan Zhuravlev
5845dc632f
feat(QueryBuilder): add method clear(statement) (#4051) 2020-10-29 01:18:32 +02:00
torres-federico
69167b6fa9
Oracle: replace user_tab_columns with all_tab_columns (#4061) 2020-10-28 22:42:24 +02:00
Igor Savin
e52c5d6c6b
Make toQuery behavior consistent with pre-0.21.7 (#4083)
fixes https://github.com/mikro-orm/mikro-orm/issues/961
2020-10-27 10:09:22 +02:00
Igor Savin
20629af916
Fix comment escaping for MySQL and PostgreSQL (#4084) 2020-10-27 10:05:21 +02:00
Kkmatt11
4edd56f156
MSSQL '?' solution (#4053)
Escape properly if literal '?' is needed.
2020-10-26 20:39:12 +02:00
poliha
d3df4eb360
add migration stub for .cjs extension (#4065) 2020-10-24 17:56:09 +03:00
Jamie Peabody
8faaf9ce27
fixes apostrophe issue on mssql dialect (#4077)
Co-authored-by: Jamie Peabody <jpeabody@axway.com>
2020-10-24 17:55:02 +03:00
Bogdan Chadkin
80355e4850
Replace inherits package with builtin utility (#4059) 2020-10-05 23:59:12 +03:00
Bogdan Chadkin
db1b052e5d
Replace mkdirp with recursive flag (#4060) 2020-10-05 23:58:22 +03:00
Guilherme Covre Dalleprane
975b5a919e
Ensure that semicolon is not appended to statements that already end with a semicolon (#4052) 2020-10-05 21:35:22 +03:00
Bogdan Chadkin
6f817a3b6e
Avoid lodash typecheks (#4056)
* Avoid lodash typecheks

Lodash is quite big project. Even with direct imports it loads [tons](https://github.com/knex/knex/pull/3804) of
code and still bloats node_modules. Especially since lodash mostly used
as a polyfill for modern features.

In this diff I attempted to reduce lodash usage by replacing type checks
with `typeof` operator which might be sufficient.

Also replaced lodash/isObject with custom simplified utility which does not
consider functions as objects and allows to simplify code in one place.
2020-10-05 21:29:39 +03:00
hansnull
8029396d2d
Mssql decimal fix (#3910) 2020-09-30 10:05:16 +03:00
Igor Savin
4a1638bfbe
Fix double merging of config for migrator (#4040) 2020-09-25 08:03:17 +02:00
Simon Lorenz
b65245e1fe
warn if whereNot is used with 'in' or 'between' (#4038)
Co-authored-by: Simon Lorenz <simon.lorenz@stadt-duisburg.de>
2020-09-19 23:45:11 +03:00
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
Florent SCHILDKNECHT
2bf17e0509
fix(seed): throw error when specific seed file cannot be found (#4011)
fixes #4005
2020-09-04 09:48:18 +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
Harish Karumuthil
8ba73e568a
Escape single quoted values passed to defaultTo function (#3899) 2020-08-08 20:48:45 +03:00
issa marie tseng
378ae79641
Ensure DB stream is destroyed when the PassThrough is destroyed (#2324). (#3900) 2020-08-08 20:27:47 +03:00
Igor Savin
55c3787644
Update dependencies (#3971) 2020-08-08 18:32:09 +03:00
cubikrichard
6203b59076
support postProcessResponse for streams (#3870) (#3931) 2020-08-08 17:57:58 +03:00
Mathieu DARTIGUES
ab7644425d
Support multiple directories for seeds (#3967) 2020-08-08 15:21:43 +03:00
Casey Foster
3677e547a9
Fix migration source name in rollback all (#3956) 2020-08-07 18:53:59 +03:00
Anand Nimkar
b59161f994
Fix getMergedConfig calls to include client logger (#3920) 2020-07-13 23:16:10 +02:00
Vicente Canales
da54cf1ecf
Prefer void as return type on migration generator ts stub (#3865)
The liberal use of `any` is frowned upon by some default tslint
configurations. That combined with the fact the these functions don't
need to return anything, makes it reasonable to use `void` over `any`
for the return type.
2020-05-22 20:48:38 +02:00
Keno Medenbach
2bd2ecd91c
MSSQL: Added the removal of a columns default constraint, before dropping the column (#3855) 2020-05-15 11:28:34 +02:00
Igor Savin
c0afe14cde
Warn user if custom migration source is being reset (#3839) 2020-05-06 00:13:09 +02:00
Igor Savin
38f54ce8f0
Refactor migration logic to use async/await. Add test case for using classes with custom migration sources (#3838) 2020-05-05 19:10:50 +02:00
Iryna Zadorozhna
fa906278b8
add support cjs files by default (#3829)
Co-authored-by: Kyrylo <kyrylo.onufriiev@gmail.com>
2020-04-28 01:21:39 +02:00
maximelkin
93f3f0ed11
rewrite delay to not node-only version (#3820) 2020-04-24 23:52:00 +02:00