130 Commits

Author SHA1 Message Date
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
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
Guy
cd1e546f66
Add types for userParams and withUserParams (#4119)
https://github.com/knex/knex/issues/3962
2020-11-15 14:35:35 +02:00
Arturs Vonda
f953ff4f8f
Fix types for insert to allow array (#4105) 2020-11-02 17:42:51 +02:00
Ben
0632d7bfd7
use tarn config TS types instead of generic-pool (#4064) 2020-11-02 12:53:13 +02:00
Nico Burns
881c5ee136
Types: Make .ignore() and .merge() return QueryBuilder rather than QueryInterface (#4102) 2020-11-02 12:51:38 +02:00
Aldo Funes
4b4b7ae3d9
Add a few missing types for MSSQL Connection (#4103) 2020-11-02 00:25:27 +02:00
Arturs Vonda
ce0002d106
Global table definitions v2 (#4100) 2020-11-01 13:15:58 +02:00
Igor Savin
a849553f87
Revert "Allow to globally define table/record mapping (#4071)" (#4099)
This reverts commit c347408a
2020-11-01 04:00:20 +02:00
Arturs Vonda
c347408a75
Allow to globally define table/record mapping (#4071) 2020-10-31 23:48:10 +02:00
Nico Burns
8d43019873
Implement "UPSERT" (Postgres/MySQL/Sqlite) (#3763) 2020-10-31 17:22:52 +02:00
Ivan Zhuravlev
5845dc632f
feat(QueryBuilder): add method clear(statement) (#4051) 2020-10-29 01:18:32 +02:00
Valéry Herlaud
8bc89b062d
[Types] Add arguments to QueryCallback in Where. (#4034) 2020-09-30 10:03:26 +03:00
Duc Nghiem Xuan
f5835b379e
Unify SeedsConfig and SeederConfig (#4003)
These two types seems to describe the same thing while being out of sync.
2020-09-25 08:06:08 +02:00
James Greenleaf
7f16df98c2
Allow string[] type for directory in SeedsConfig (#4033) 2020-09-19 23:46:10 +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
Mathieu DARTIGUES
f3c73ccd58
Add new option for seed : recursive (#3974) 2020-08-10 15:10:37 +02:00
Tomi Turtiainen
a94886483d
Add .timeout(ms) to .raw()'s typescript typings (#3885) 2020-08-08 20:34:31 +03:00
Kristjan
cec00da8b7
fix: add typing for double table column builder (#3950) 2020-08-08 15:18:30 +03:00
Lorefnon
447e592438
Resolve #3932: Add a phantom tag to Ref type to mark received type parameters as used (#3934) 2020-08-07 18:52:49 +03:00
Richard Eames
f6e403489f
Add null as valid binding type (#3946) 2020-08-07 18:49:24 +03:00
maximelkin
4fa6e1f8c2
fix definition for raw querybuilders (bindings should be one object or array, not vararg) (#3846) 2020-05-13 16:28:39 +02:00
Igor Savin
61514abf55
Bump dependencies (#3809) 2020-04-18 21:34:52 +02:00
Victor Andrée
a8a074bed4
Add types for .distinctOn (#3784) 2020-04-15 19:01:42 +02:00
Lorefnon
82361d12c1
Fix minor issues around typings (#3765) 2020-04-13 01:11:36 +02:00
Edvaldo Szymonek
336b41e148
Add clearGroup method (#3771) 2020-04-13 01:09:51 +02:00