Jesper Engberg
c8da0dfc13
fix: add ResolveTableType for .merge() ( #5605 )
2023-07-04 12:43:06 +02:00
dependabot[bot]
9e5fdfae89
Bump pg-connection-string from 2.5.0 to 2.6.1 ( #5610 )
...
Bumps [pg-connection-string](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg-connection-string ) from 2.5.0 to 2.6.1.
- [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md )
- [Commits](https://github.com/brianc/node-postgres/commits/pg-connection-string@2.6.1/packages/pg-connection-string )
---
updated-dependencies:
- dependency-name: pg-connection-string
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-04 10:14:27 +02:00
Andrés Correa Casablanca
f6ea8122b6
fix(security): avoid password leaks on query logs ( #5559 )
...
Signed-off-by: Andres Correa Casablanca <castarco@coderspirit.xyz>
2023-07-03 21:03:27 +02:00
florian-lackner365
d9f333313b
add collate to the columnbuilder interface ( #5568 )
2023-06-28 23:46:31 +02:00
Erin Dees
2ed6988d80
Ensure test DB exists at correct path in better-sqlite3 tests ( #5608 )
2023-06-27 10:26:30 +02:00
Erin Dees
dab051b6da
Add readonly option to Better-SQLite3 ( #5530 )
...
Co-authored-by: Adam Haglund <ahaglund@paypal.com>
2023-06-25 21:30:11 +02:00
Olivier Cavadenti
0f8bbe92b5
Mysql2 require breaks with Node 12 ( #5579 )
2023-06-20 12:34:42 +03:00
Shean de Montigny-Desautels
5ffe289c33
fix() manually close source stream ( #5466 )
2023-05-31 17:53:27 +02:00
Matt Meyers
b6d04f75b3
Add object syntax overload to decrement method ( #5555 )
2023-04-21 09:19:44 +02:00
dependabot[bot]
775c719043
Bump typescript from 5.0.3 to 5.0.4 ( #5538 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.0.3...v5.0.4 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 09:07:36 +02:00
François de Metz
704d12e9ba
Add ability to prepend query comments ( #5289 )
...
Co-authored-by: Ryan Fink <ryanjfink@gmail.com>
2023-04-14 06:07:05 +02:00
dependabot[bot]
ce56f40020
Bump typescript from 5.0.2 to 5.0.3 ( #5533 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/commits )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 09:23:56 +02:00
Muhammad Syaifudin
7f0a9fe8ed
add fetchAsString option ( #5484 )
2023-03-31 09:54:10 +02:00
Zhang Yidong
ab1f9ae372
[Sqlite3] Fix can not get table sql because of case sensitive ( #5509 )
...
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2023-03-30 18:15:04 +02:00
dependabot[bot]
13936f2702
Bump typescript from 4.8.3 to 5.0.2 ( #5519 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.8.3 to 5.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.3...v5.0.2 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 11:52:47 +02:00
ian
8ea5690bac
Use implicit check on json fields for OracleDB ( #5478 )
2023-03-29 23:45:19 +02:00
Varun Sharma
b981bf1d00
Add minimum GitHub token permissions for workflows ( #5318 )
...
Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
2023-03-29 23:40:33 +02:00
Olivier Cavadenti
cba2210fd3
linting
2023-03-29 20:38:55 +02:00
David Tanner
2ad7719923
TableBuilder methods typically return the SchemaBuilder, so updating methods to reflect that. ( #5486 )
2023-03-29 14:04:57 +02:00
Deirdre Sweeney
4d5ae61bfe
[ISSUE-5350] Create EXCEPT as a valid keyword ( #5357 )
2023-03-29 14:03:59 +02:00
Omar Abdelkader
570a7eae48
Add readonly transaction access mode ( #5445 )
2023-03-29 13:59:05 +02:00
Pierre Ducher
7dd56826b9
[TypeScript ]Add missing types for havingNull and havingNotNull ( #5529 )
2023-03-29 12:50:32 +02:00
dependabot[bot]
de2a8a2df4
Bump commander from 9.5.0 to 10.0.0 ( #5447 )
...
Bumps [commander](https://github.com/tj/commander.js ) from 9.5.0 to 10.0.0.
- [Release notes](https://github.com/tj/commander.js/releases )
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tj/commander.js/compare/v9.5.0...v10.0.0 )
---
updated-dependencies:
- dependency-name: commander
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 22:31:49 +02:00
dependabot[bot]
a312423be8
Bump actions/setup-node from 3.5.1 to 3.6.0 ( #5429 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v3.5.1...v3.6.0 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 22:30:08 +02:00
dependabot[bot]
676ae9fa3b
Bump mysql2 from 2.3.3 to 3.2.0 ( #5505 )
...
Bumps [mysql2](https://github.com/sidorares/node-mysql2 ) from 2.3.3 to 3.2.0.
- [Release notes](https://github.com/sidorares/node-mysql2/releases )
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md )
- [Commits](https://github.com/sidorares/node-mysql2/compare/v2.3.3...v3.2.0 )
---
updated-dependencies:
- dependency-name: mysql2
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 22:17:36 +02:00
dependabot[bot]
833c039cb8
Bump tsd from 0.25.0 to 0.28.1 ( #5528 )
...
Bumps [tsd](https://github.com/SamVerschueren/tsd ) from 0.25.0 to 0.28.1.
- [Release notes](https://github.com/SamVerschueren/tsd/releases )
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.25.0...v0.28.1 )
---
updated-dependencies:
- dependency-name: tsd
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 22:14:29 +02:00
Adam Haglund
ac59ab7bb6
Add nativeBindings option to better-sqlite3 options ( #5461 )
2023-03-28 22:12:05 +02:00
Rudi Dykman
42b91980b7
Update dates in Changelog for 2023 ( #5468 )
2023-03-28 14:44:41 +02:00
Luca Kiebel
c374a30f53
[TypeScript] Add Object syntax overload to increment method ( #5512 )
...
The [documentation for `QueryBuilder#icrements`](https://knexjs.org/guide/query-builder.html#increment ) says, that the method accepts columns and values either as separate arguments, or in Object syntax ([the code also checks if the column is an object](0d27bcb60b/lib/query/querybuilder.js (L1111) )).
But currently this code:
````typescript
knex("table")
.where({ id: 1 })
.increment({
foo: 1,
bar: 2,
});
````
Throws an error:
````
No overload matches this call.
Overload 1 of 2, '(columnName: string | number | symbol, amount?: number): QueryBuilder<any, number>', gave the following error.
Argument of type '{ views: number; clicks: number; sales: number; }' is not assignable to parameter of type 'string | number | symbol'.
Overload 2 of 2, '(columnName: string, amount?: number): QueryBuilder<any, number>', gave the following error.
Argument of type '{ views: number; clicks: number; sales: number; }' is not assignable to parameter of type 'string'.
````
This adds an overload to the increment method type definition for the case where the first argument is an Object consisting of keys from TRecord and numbers as values.
2023-03-28 14:43:21 +02:00
dependabot[bot]
01688a49f0
Bump prettier from 2.8.3 to 2.8.7 ( #5527 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.3 to 2.8.7.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.3...2.8.7 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 14:42:32 +02:00
Igor Savin
0d27bcb60b
Update changelog
2023-01-22 16:14:56 +02:00
Igor Savin
73a3e33a32
Prepare to release 2.4.2
2.4.2
2023-01-22 16:13:58 +02:00
Igor Savin
9a6c5ba62f
Additional lint checks before publishing ( #5459 )
2023-01-22 16:13:24 +02:00
Minh TRINH
5caf526c27
tests(insert): add tests for json, text array, integer array ( #5451 )
2023-01-18 02:05:36 +02:00
Igor Savin
d102fe3b96
Prepare to release 2.4.1
2.4.1
2023-01-18 01:23:32 +02:00
Loren
1f2de49fbe
Fix Postgres Malformed array literal 2.4.0 Regression ( #5439 )
2023-01-18 01:08:21 +02:00
Igor Savin
3475d81668
Prepare to release 2.4.0
2.4.0
2023-01-06 17:42:59 +02:00
dependabot[bot]
e97f92201a
Bump tsd from 0.24.1 to 0.25.0 ( #5396 )
...
Bumps [tsd](https://github.com/SamVerschueren/tsd ) from 0.24.1 to 0.25.0.
- [Release notes](https://github.com/SamVerschueren/tsd/releases )
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.24.1...v0.25.0 )
---
updated-dependencies:
- dependency-name: tsd
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-05 23:30:12 +01:00
Anton Savchenko
e145322da9
1227: add assertion for basic where clause values ( #5417 )
2023-01-05 23:27:49 +01:00
dependabot[bot]
962bb0a635
Bump sinon from 14.0.2 to 15.0.1 ( #5413 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 14.0.2 to 15.0.1.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v14.0.2...v15.0.1 )
---
updated-dependencies:
- dependency-name: sinon
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 21:12:36 +01:00
Richard
ab45314e70
Add JSDoc (TS Flavour) to mjs stub file ( #5390 )
2022-11-23 09:14:14 +01:00
Suhyeong Cho
72bd1f7396
Fix: orWhereJson ( #5361 )
2022-11-18 23:23:52 +01:00
Matt
4fc939a176
Fixes unexpected max acquire-timeout ( #5377 )
...
Important for applications where high pool contention is expected, and completion is favored over latency.
Co-authored-by: Matt <matt.goodson.business@gmail.com>
2022-11-17 09:53:16 +01:00
Kyler Nelson
5c4837cd4f
Fix lib/.gitignore path separator on Windows. ( #5325 )
2022-11-14 14:19:07 +01:00
dependabot[bot]
7dbbd00701
Bump actions/setup-node from 3.4.1 to 3.5.1 ( #5356 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 3.4.1 to 3.5.1.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v3.4.1...v3.5.1 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 14:15:07 +01:00
Sam Adams
d39051f4a5
fix: add missing type for 'expirationChecker' on PgConnectionConfig ( #5334 )
...
Co-authored-by: Igor Savin <iselwin@gmail.com>
2022-09-28 00:25:12 +03:00
Jakob Joonas
f7ccde80c9
Make compiling SQL in error message optional ( #5282 )
2022-09-23 09:39:15 +02:00
dependabot[bot]
82610ca4e7
Bump tsd from 0.23.0 to 0.24.1 ( #5329 )
...
Bumps [tsd](https://github.com/SamVerschueren/tsd ) from 0.23.0 to 0.24.1.
- [Release notes](https://github.com/SamVerschueren/tsd/releases )
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.23.0...v0.24.1 )
---
updated-dependencies:
- dependency-name: tsd
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-23 09:25:27 +02:00
dependabot[bot]
cb5be880c1
Bump typescript from 4.8.2 to 4.8.3 ( #5324 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.8.2 to 4.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.2...v4.8.3 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-13 11:45:14 +02:00
Mingo Zhuang
dc6dbbf900
fix: insert array into json column ( #5321 )
...
* fix: insert array into json column
* fix: determine array
2022-09-02 12:10:18 +02:00