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
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
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
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
Mathieu DARTIGUES
ab7644425d
Support multiple directories for seeds ( #3967 )
2020-08-08 15:21:43 +03: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
e37aeaa31c
Prepare for 0.21.0 release ( #3811 )
2020-04-19 00:40:23 +02:00
Brian Lauber
8d5715a03a
Fix: Support for .finally(..) on knex's Promise-alikes ( #3800 )
2020-04-15 21:05:40 +02:00
Edvaldo Szymonek
336b41e148
Add clearGroup method ( #3771 )
2020-04-13 01:09:51 +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
Kabir Baidhya
078b749892
Add unit tests for escape utility functions ( #3742 )
2020-03-22 18:44:51 +01:00
Kabir Baidhya
a7031c3cef
Upgrade package mkdirp and improve it's usage ( #3741 )
2020-03-21 11:01:10 +01:00
Florent Vilmart
998c92ca97
Typescript: Makes the ChainableInterface conform to Promise<T> ( #3724 )
2020-03-19 23:19:57 +01:00
Brian Lauber
0f523db957
Removed .should(..) syntax from test cases ( #3713 )
2020-03-09 10:10:33 -04:00
Brian Lauber
9d07bc97ea
Removed some globals from tests ( #3712 )
...
* `chai` is no longer global
* sinon is no longer globally defined
* expect(..) is no longer defined globally
* Removed obsolete eslint hints about globals
* Removed unused variable ( `expect(..)` )
2020-03-08 19:48:23 -04:00
Brian Lauber
05fedd9e11
Mark missing test cases as "pending" rather than "passed" ( #3695 )
...
* Missing test cases are marked as "pending" rather than "passed"
* Work-around for connection disposal bug in pooling logic...
See this conversation thread for more info: https://github.com/knex/knex/issues/3636#issuecomment-592005391
2020-03-02 01:04:01 +01:00
lando-cal
3bea3f66ec
Add OracleDB handling for buffer type in fetchAsString ( #3685 )
...
As released in [2.3.0](https://github.com/oracle/node-oracledb/blob/master/CHANGELOG.md#node-oracledb-v230-7-jun-2018 ) of node-oracledb, this adds handling to fetchAsString for the `BUFFER` type, allowing fetchAsString to interpret `RAW` fields.
2020-02-25 01:27:33 +01:00
maximelkin
8159f04c12
Remove dependency on bluebird methods from tests ( #3682 )
...
* Remove dependency on bluebird methods from tests
* Introduce `"chai-as-promised"` plugin
* Minor enhancements to the testing logic
2020-02-24 19:24:30 -05:00
Jake Coffman
22558209d4
dispose Oracle connection on connection error ( #3611 )
...
Co-authored-by: abskmj <abskmj@gmail.com>
2020-01-05 18:47:32 +01:00
Kabir Baidhya
2800e72d2f
Add tests for some of the string utility functions ( #3568 )
2020-01-04 22:59:41 +01:00
Jake Coffman
07997279b7
fix #3605 not releasing connection from pool on disconnect ( #3606 )
2020-01-04 22:56:14 +01:00
Igor Savin
4feefdf3d2
Enforce Unix (lf) line terminators ( #3598 )
2019-12-29 20:28:40 +01:00
Igor Savin
9b37c9480b
Return more information about empty updates ( #3597 )
2019-12-28 22:36:14 +01:00
MaliaGuerrero
03d6f063d5
Initialize data to buffer instead of string for non-strings ( #3545 )
2019-11-21 19:46:45 +01:00
Lorefnon
79ccb7d8bd
Lift up dialect specific methods in the CreateTableBuilder ( #3532 )
2019-11-21 15:22:29 +01:00
Edvard Chen
0560959fa4
feat: wrap subQuery with parenthesis when it appears as table name ( #3496 )
2019-10-28 21:38:01 +01:00
EthanHur
2d0459111d
orderBy accepts QueryBuilder ( #3491 )
2019-10-24 16:08:12 +02:00
EthanHur
c53227564d
add validation in .offset() ( #2908 )
2019-10-15 13:24:49 +02:00
maximelkin
c9e305760d
Fix oracledb driver v4 support ( #3480 )
2019-10-15 08:23:07 +02:00
Igor Savin
e112a21597
Remove unneeded logging
2019-10-06 23:23:38 +02:00
Igor Savin
988fb24389
Fix MSSQL escaping ( #3382 )
2019-10-06 20:21:32 +02:00
Roland Németh
c1d20270d6
Fix handling of multiline SQL in SQLite3 schema ( #3411 )
2019-10-06 18:27:52 +02:00
Kristjan
4ade98980e
feat: add undefined columns to undefined binding(s) error ( #3425 )
2019-09-04 22:59:04 +02:00
Taras Ozarko
d6426d75e1
Add ability to manually define schema for enu with useNative ( #3307 ) ( #3413 )
2019-08-25 23:07:30 +02:00
Ihor Sakaylyuk
1ef1a4ef07
Fix native enum with specified schema ( #3307 ) ( #3400 )
2019-08-24 17:37:29 +02:00
Igor Savin
871dadb348
More consistent handling of nested transactions ( #3393 )
2019-08-16 16:28:25 +02:00
Igor Savin
2c3b4ded7b
Fallback to JSON when using JSONB in MySQL ( #3394 )
...
fixes #3386
2019-08-14 17:11:01 +02:00
Felix Mosheev
8111bb3ee8
Feat: Allow to extend knex query builder ( #3334 )
2019-07-23 20:45:03 +02:00
Matthew Kuo
054ce36b0a
Add .isCompleted() to transaction ( #3368 )
2019-07-23 17:59:55 +02:00
Igor Savin
fb06464da0
Update tarn.js ( #3345 )
...
* Update tarn.js
* Remove beforeDestroy
2019-07-11 14:57:59 +02:00
Ricardo Graça
9aa7085b05
Rename src directory to lib ( #3338 )
2019-07-10 23:48:43 +02:00
Igor Savin
e971c5198b
Update dependencies, fix new eslint errors ( #3339 )
2019-07-10 20:47:56 +02:00
Ricardo Maes
bc1ddcad01
Implement "skipLocked()" and "noWait()" ( #2961 )
2019-07-06 14:05:53 +02:00
Dmitrii Maganov
a0e9be548d
Fix return duplicate transaction promise for standalone transactions ( #3328 )
2019-07-04 22:05:23 +02:00