179 Commits

Author SHA1 Message Date
Olivier Cavadenti
7c52de9f23
Create table like support (#1373) (#4728) 2021-10-15 16:57:46 +03:00
Olivier Cavadenti
126b84639e
Support for 'is null' in 'order by' (#3667) (#4720) 2021-10-10 22:45:48 +03:00
maximelkin
d9d6ac81a7
fix onDelete/onUpdate for ColumnBuilder (#4656)
Co-authored-by: maximelkin <maxeljkin@gmail.com>
2021-10-10 16:47:37 +03:00
OlivierCavadenti
6892c2c7c0
Add support for 'CASCADE' in PostgreSQL 'DROP SCHEMA' queries (#4713) 2021-10-09 01:23:02 +03:00
Igor Savin
941b660f53
Initial infrastructure for CockroachDB (#4571) 2021-10-02 23:45:17 +03:00
Igor Savin
f3de47dcf8 Fix method signature 2021-09-03 22:43:14 +03:00
Igor Savin
58e441df67 Prepare to release 2021-09-03 22:39:10 +03:00
Jeremy W. Sherman
a9338208f1
fix(oracledb): withRecursive: omit invalid RECURSIVE keyword, include column list [#4514] (#4652) 2021-09-03 22:27:32 +03:00
wolfcomp
4c79ac1fe6
Fix Analytic orderBy and partitionBy to follow the SQL documentation (#4602) 2021-08-30 20:17:16 +03:00
zeotuan
4ff3a929f3
fix typing deferrable and withkeyName should not be in ColumnBuilder (#4600) 2021-08-07 11:07:29 +03:00
zeotuan
b71f0afe91
Improve Typing: add typescript support for deferrable, new Primary/Unique syntax (#4589) 2021-07-29 16:03:24 +03:00
Dave de Jong
8619d80336
Add mssql trustServerCertificate option. (#4500) 2021-07-21 01:29:53 +03:00
Minh Son Nguyen
c9a5548865
Improve analytic types (#4576) 2021-07-21 01:24:33 +03:00
Ben
402453ba1a
let types export Knex.TransactionConfig (#4498) 2021-07-10 15:36:13 +03:00
tkalliom
91297d52fc
Include options object in count(Distinct) typings (#4491)
Fixes #4165
2021-07-10 15:13:28 +03:00
Minh Son Nguyen
228b49f4af
[Typing] Add types for analytic functions (#4544) 2021-06-29 16:36:02 +03:00
Igor Savin
dfbc76b915
Export TransactionProvider type (#4489) 2021-05-17 19:42:28 +03:00
Kristjan
08cb69d925
fix: export client class from knex namespace (#4479) 2021-05-11 13:19:05 +03:00
Lucas Silva
8c7a9ba928
Adding Type Definition for isTransaction (#4418) 2021-04-22 00:51:26 +03:00
Michael Ferris
e8392aac07
Add typings for on JoinClause for onVal (#4436) 2021-04-22 00:50:57 +03:00
Wigger Boelens
267ff3a28b
Add support for file open flags for sqlite3 (#4446) 2021-04-22 00:50:03 +03:00
David Whynot
f6d34f93ed
Fix typing for increments and bigIncrements (#4406) 2021-03-30 20:58:43 +03:00
monotykamary
767f32e6c9
fix: mistyping of stream (#4400) 2021-03-26 19:54:24 +02:00
Minh Son Nguyen
8858a630b6
nguymin4/update typings (#4377) 2021-03-25 11:21:46 +02:00
Jiri Spac
fab2ed6d10
add dropForeign arg type for single column (#4363) 2021-03-25 11:20:59 +02:00
Igor Savin
4ff3868140
Move QueryBuilder and KnexTimeoutError into knex namespace so that they are accessible at a runtime (#4358) 2021-03-08 23:18:49 +02:00
Igor Savin
5d2db21443
Fix ArrayIfAlready type (#4331) 2021-03-02 19:38:22 +02:00
Igor Savin
887a4f606a
Improve join and conflict types v2 (#4318)
Co-authored-by: Jeroen Hermans <jeroen@datacamp.com>
2021-03-02 19:34:04 +02:00
Nicola Krumschmidt
29b8a3623f
Adjust generateDdlCommands return type (#4326) 2021-03-01 19:11:16 +02:00
Daniel Hensby
c0d8c5c247
mssql: schema builder - add predictable constraint names for default values (#4319) 2021-02-28 01:08:15 +02:00
Nath Tumlin
b6fd941c4e
Include 'name' property in MigratorConfig (#4300) 2021-02-17 21:26:00 +02:00
Matt
a4b6db85a9
Added merge strategy to allow selecting columns to upsert. (#4252)
Co-authored-by: Matt Goodson <matt.goodson.business@gmail.com>
2021-02-09 10:04:43 +02:00
Tyler Watson
b530eacd61
mssql: add all mssql options to Knex.ConnectionConfig (#4281)
Co-authored-by: Igor Savin <iselwin@gmail.com>
2021-02-08 16:57:27 +02:00
Pavan Bellamkonda
a8df831cf6
Add typedefinitions for havingNotIn (#4265) 2021-02-02 22:07:31 +02:00
martinmacko47
50be910113
Allow optimizer hints (#4243) 2021-01-28 01:57:25 +02:00
Igor Savin
000fde3f78
Move transaction type tests to TSD (#4208) 2021-01-06 02:31:49 +02:00
Jingsi Zhu
72193891a5
Fix type definition of Transaction (#4172)
Co-authored-by: Igor Savin <iselwin@gmail.com>
2021-01-05 21:38:58 +02:00
Igor Savin
92d8f49724
Return complete list of DDL commands for creating foreign keys in SQLite (#4194) 2021-01-03 04:10:26 +02:00
Igor Savin
177938afeb
Introduce the "infamous triplet" export (#4181) 2020-12-30 22:26:08 +02:00
Ben Lu
a31f0400e6
Add transaction isolation support (#4185) 2020-12-30 18:13:35 +02:00
Igor Savin
b5fbce655e
Add missing onConflict overrides (#4182) 2020-12-28 14:26:58 +02:00
Nicolas Vitaterna
c296092e75
Add after and first to columnBuilder types #3549 (#4169) 2020-12-22 00:45:39 +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
Avi Itskovich
bc04b7ab30
Add support for application_name (#4153)
Add support for application_name as a valid type. This option is already supported in `pg`, see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/pg/index.d.ts
2020-12-10 11:08:57 +02:00
Kenny
073df48cc6
Add types for connection config of mysql2 driver (#4144) 2020-12-07 22:46:28 +02:00
iceflash
61344b180e
fix types for WhereIn signature(value or query builder) (#3863) 2020-11-27 15:02:23 +02:00
maximelkin
619f2865af
fix/4068 batchInsert correct definitions (#4131) 2020-11-27 15:01:36 +02:00
Alucard17
6c23c43731
Added type for withKeyName (#4139) 2020-11-27 15:00:06 +02:00
Igor Savin
293163b480
Move TS tests to tsd, part 2 (#4110) 2020-11-20 12:46:08 +02:00
Igor Savin
4a5172bd72
Move TS tests to tsd, part 1 (#4109) 2020-11-16 23:55:58 +02:00