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
Tanguy Krotoff
1fcc40d868
interface Knex
and function Knex
should have the same types (#3787 )
2020-04-12 20:12:27 +02:00
Lorefnon
72aaf6c6e1
Add toSQL and toString to SchemaBuilder ( #3758 )
...
Fixes #3751
2020-03-25 22:13:36 +01:00
Lorefnon
c35a66d31b
Update signature of orderBy to support QueryBuilder inside array ( #3757 )
...
Fixes #3738
2020-03-25 22:12:38 +01:00
Lorefnon
2fbe91da1a
Add typings for MigrationSource ( #3756 )
2020-03-25 18:22:38 +01:00
maximelkin
74501e612a
typings: support Raw types for insert, where, update ( #3730 )
2020-03-23 21:26:14 +01:00
Florent Vilmart
998c92ca97
Typescript: Makes the ChainableInterface conform to Promise<T> ( #3724 )
2020-03-19 23:19:57 +01:00
Lorefnon
acf56b5922
Fix incorrect type signature of Having ( #3719 )
2020-03-11 12:08:58 +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
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
maximelkin
88d832cd36
replace Bluebird.timeout ( #3634 )
2020-02-12 21:42:15 +01:00
saostad
2f4219193e
interface MsSqlConnectionConfig enableArithAbort: null | boolean is required now. ( #3629 )
2020-01-20 23:34:21 +01:00
Lorefnon
75b1db5b4c
Fix incorrect type of QueryBuilder.first('*') result ( #3621 )
2020-01-10 11:23:55 +01:00