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
maximelkin
dc30abf39e
bugfix mysql query errors ignored ( #3690 )
2020-02-29 00:16:07 +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
Lorefnon
8c07192ade
#3653 Mark knex arguments of composite/collection types to be readonly ( #3680 )
...
* Mark knex arguments of composite/collection types to be readonly to make it explicit that knex does not mutate them
This allows users to pass readonly collections as parameters, and helps towards type safety.
Resolves #3653
2020-02-25 01:30:31 +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
Igor Savin
c9be84890c
Update list of maintainers ( #3676 )
2020-02-20 22:52:41 +01:00
Brian Lauber
f3151bdc93
Cleanup and extract Transaction Workflow logic (rebase) ( #3674 )
2020-02-20 20:44:18 +01:00
Brian Lauber
eaf0d15b18
Fix race condition in non-container transactions ( #3671 )
...
* Transaction logic establishes 2 separate Promise Chains...
... One chain is for INTERNAL use within the Transaction logic
itself. This chain ignores exceptions. It is simply used to
signal when the "Next Transaction" (sibling) is allowed to begin.
The other chain is for EXTERNAL use. It expects the caller
to handle any exceptions that occur during the Transaction.
2020-02-19 23:40:03 +01:00
Igor Savin
72886086b6
Update changelog
2020-02-16 20:27:47 +01:00
Jake Coffman
d50d00644c
oracledb: commit was a no-op causing race conditions ( #3668 )
...
The underlying issue was that query *always* committed, even during a transaction. The previous fix was to just disable commitAsync in a transaction but then that also disabled explicit commit calls. Instead, this fix disables query's commits during transactions so that explicit commits still work.
2020-02-16 20:26:13 +01:00
Brian Lauber
31e5418eb1
Fixed unresolved promise in cancelQuery(..) ... ( #3666 )
...
cancelQuery(..) was attempting to
"cancel the cancellation" after 100ms. However, it was not
actually achieving this objective. In reality, the cancellation
was still running in the background even though the caller had
already moved on.
Later on, the cancellation would ACTUALLY fail due to a resource
allocation issue (ie: no more connections in the Tarn pool).
This would then result in an unhandled Promise rejection.
2020-02-16 20:05:50 +01:00
Igor Savin
77df705189
Prepare for release of 0.20.10
2020-02-13 21:24:39 +01:00
Pedro Romano
4ae8894e45
fn.now
takes optionally a precision argument. (#3662 )
2020-02-13 21:18:22 +01:00
Sam Jeffress
b6f2952a47
include SSL in postgres connection definition ( #3659 )
...
Reflect the type at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/pg/index.d.ts
2020-02-13 10:31:51 +01:00
Brian Lauber
2c206a8fec
Fix: Knex CLI calls process.chdir() before opening Knexfile ( #3661 )
2020-02-13 08:58:33 +01:00
maximelkin
88d832cd36
replace Bluebird.timeout ( #3634 )
2020-02-12 21:42:15 +01:00
Igor Savin
92d394432c
Prepare for release of 0.20.9 ( #3655 )
2020-02-08 19:00:20 +01:00
Brian Lauber
947273e24a
Improve Support for Liftoff's Preloaders ( #3613 )
2020-02-08 17:23:44 +01:00
Lorefnon
589ea747c2
Update QueryCompiler implementation to use classes ( #3647 )
2020-02-01 17:22:00 +01:00
Igor Savin
c14252d907
Refactor more tests to use cli-testlab ( #3640 )
2020-01-28 02:28:40 +01:00
saostad
2f4219193e
interface MsSqlConnectionConfig enableArithAbort: null | boolean is required now. ( #3629 )
2020-01-20 23:34:21 +01:00
Igor Savin
faacfd726e
Prepare 0.20.8 release ( #3625 )
2020-01-14 21:52:46 +01:00
Mr D
65086025c0
#3751 : Esm interop flag ( #3616 )
2020-01-14 21:01:31 +01:00
yeonhoyoon
4a2fa3b6c9
Print help only when there are no arguments ( #3617 )
2020-01-14 20:58:28 +01:00
Lorefnon
75b1db5b4c
Fix incorrect type of QueryBuilder.first('*') result ( #3621 )
2020-01-10 11:23:55 +01:00
Igor Savin
2e3c7fe231
Prepare 0.20.7 release
2020-01-07 01:31:20 +01:00
Igor Savin
aef3eb822a
Update dependencies ( #3614 )
2020-01-07 01:27:59 +01: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
Jon Caldwell
aea29d0a7c
Add create/drop schema methods to SchemaBuilder ( #3579 )
2020-01-05 00:05:00 +01:00
Igor Savin
80a2516734
Throw better error when trying to modify schema while using unsupported dialect ( #3609 )
2020-01-05 00:04:41 +01:00
Kabir Baidhya
2800e72d2f
Add tests for some of the string utility functions ( #3568 )
2020-01-04 22:59:41 +01:00
Jeremy Bernier
bd5d837abf
Update deprecated dialect
to client
in code example ( #3599 )
...
The code sample in the README.md uses a deprecated config option. When using `dialect`, one gets the warning: "Using 'this.dialect' to identify the client is deprecated and support for it will be removed in the future. Please use configuration option 'client' instead."
2020-01-04 22:57:51 +01:00
James George
df2ace1915
fix: prevent warning with root command ( #3604 )
2020-01-04 22:57:12 +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 )
0.20.6
2019-12-29 20:28:40 +01:00
Igor Savin
a2a66605a3
Prepare 0.20.5 release
2019-12-29 00:04:43 +01:00
Lorefnon
3914bf52af
Fix colors in debug logs ( #3592 )
2019-12-28 23:59:57 +01:00
Igor Savin
9b37c9480b
Return more information about empty updates ( #3597 )
2019-12-28 22:36:14 +01:00
Thomas Sondergaard
c277edbaf1
Use more efficient algorithm for generating internal ids ( #3595 ) ( #3596 )
2019-12-27 20:16:38 +01:00
Ahmed Ashour
a613fe23df
Fix some spelling mistakes ( #3572 )
2019-12-10 22:53:05 +01:00
Ahmed Ashour
dcbe5559bf
The project location has moved to knex/knex ( #3573 )
2019-12-10 22:52:36 +01:00
Ahmed Ashour
d5773f8a44
Use Buffer.alloc() instead of deprecated () ( #3574 )
2019-12-10 22:51:57 +01:00
Igor Savin
7c3637e9d5
Prepare 0.20.4 release
0.20.4
2019-12-08 00:05:19 +01:00
Lorefnon
c53247d6ee
Make logger methods mutually consistent ( #3567 )
...
Resolves #3363
2019-12-07 23:57:20 +01:00
Jan Killian
c72b9558bf
Fix QueryBuilder.extend this type ( #3526 ) ( #3528 )
2019-12-07 22:16:00 +01:00
Lorefnon
65e1a3a3d0
Fix debug logger messing up queries with % ( #3566 )
2019-12-07 22:15:39 +01:00
Lorefnon
65c6ebc56a
Add missing methods to client type ( #3565 )
2019-12-07 18:55:04 +01:00
Andrew Burgess
2289c08380
Fix queryContext function defintion ( #3562 )
2019-12-04 22:25:57 +01:00
maximelkin
84fce33f69
Remove bluebird.using ( #3552 )
2019-11-28 20:44:18 +01:00