95 Commits

Author SHA1 Message Date
Lorefnon
452cbe8f35 Add support to transform raw SQL through user specified transformers 2020-02-23 11:17:36 +05:30
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
Jon Caldwell
aea29d0a7c Add create/drop schema methods to SchemaBuilder (#3579) 2020-01-05 00:05:00 +01:00
Lorefnon
3914bf52af Fix colors in debug logs (#3592) 2019-12-28 23:59:57 +01:00
Ahmed Ashour
a613fe23df Fix some spelling mistakes (#3572) 2019-12-10 22:53:05 +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
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
Florent Cailhol
f4099af3fb Support 'only' option (#3551) 2019-11-26 08:35:39 +01:00
Lorefnon
79ccb7d8bd Lift up dialect specific methods in the CreateTableBuilder (#3532) 2019-11-21 15:22:29 +01:00
Lorefnon
3c2969ddd1 Add client property to QueryBuilder type (#3541) 2019-11-17 16:50:47 +01:00
Ben Saufley
ec9c9b6819 Expand SeedsConfig types (#3531) 2019-11-14 19:58:19 +01:00
Mazharul Onim
115ff3c136 Fix typing file (#3505) 2019-11-12 22:09:59 +01:00
Lorefnon
63986fade3 Make the default type parameters of QueryBuilder less strict (#3520)
Resolves #3519
2019-11-11 00:51:13 +01:00
Lorefnon
af129408ca Fix regression in older version of node when Promise#finally
was not available

- More closely align the ChainableInterface type to reality

Resolves #3507
2019-11-02 22:35:24 +05:30
Lorefnon
6f5a13d3ab Gracefully handle global promise pollution (#3502)
Update QueryInterface to proxy to only standard promise methods
Update QueryInterface type to be explicit about the methods being
proxied
This primarily handles pollution of global Promise (either the type or
the global object at runtime) by other libraries.

Fixes: #3422
2019-10-29 08:49:15 +01:00
Oran Epelbaum
f4b6848594 Dynamic connection configuration resolution (#3497) 2019-10-27 16:14:18 +01:00
Timothy Ng
d806ec0c20 #3367 Add interface for PG Connection object (#3372) 2019-10-26 08:04:51 +02:00
EthanHur
2d0459111d orderBy accepts QueryBuilder (#3491) 2019-10-24 16:08:12 +02:00
Luiz Felipe Gonçalves
49076445cb feat: Add types to the Migrator interface (#3459) 2019-10-21 23:42:55 +02:00
Jiri Spac
dd3ba822a5 fix typings of index and dropIndex TableBuilder methods (#3486) 2019-10-21 22:15:54 +02:00
Keith Smith
767904c3a2 Fixes types for Seeder#run (#3438) 2019-10-14 16:56:19 +02:00
Nekrasov Ilya
6b9fb0ec01 disable_migrations_list_validation_feature (#3448) 2019-10-12 21:45:39 +02:00
Igor Savin
516b074790
Enable linting in CI (#3450) 2019-10-06 20:20:46 +02:00
Adrian Olek
fb095cb59c Add missing Migrator.list typing (#3460) 2019-10-03 20:35:36 +02:00
Lorefnon
b74456492c Fix Typescript type inference for to better support wildcard (*) calls #3444 (#3446) 2019-09-22 23:05:31 +02:00
Lorefnon
eb8f0c0b2d Make options argument optional in timeout (#3442) 2019-09-15 12:09:40 +02:00
Michael Chris Lopez
019141c030 Add specific to SeederConfig type (#3429) 2019-09-09 17:50:04 +02:00
Lorefnon
6c73b22fd9 Fix some issues with QueryBuilder types (#3427)
- Add missing typedefs for or and timeout (Closes #3422)
- Move clone from QueryInterface to QueryBuilder
2019-09-05 23:18:00 +02:00
Taras Ozarko
3f86d75a46 TypeScript definition: include schemaName in EnumOptions (#3415) 2019-08-26 13:39:06 +02:00
Allan Jardine
5003241a9d #3405 Allow ColumnBuilder.defaultTo() to be null (#3407) 2019-08-22 14:58:40 +02:00
Felix Mosheev
8111bb3ee8 Feat: Allow to extend knex query builder (#3334) 2019-07-23 20:45:03 +02:00
Matthew Kuo
054ce36b0a Add .isCompleted() to transaction (#3368) 2019-07-23 17:59:55 +02:00
Evan Ross
ec6091ecba Update configuration typings to allow for oracle db connectionstring (#3361) 2019-07-23 00:11:18 +02:00
Lorefnon
30c04c166d Update Knex.raw type to be any by default because the actual type is dialect specific (#3349) 2019-07-13 14:50:34 +02:00
Igor Savin
fb06464da0
Update tarn.js (#3345)
* Update tarn.js
* Remove beforeDestroy
2019-07-11 14:57:59 +02:00
Ricardo Graça
9aa7085b05 Rename src directory to lib (#3338) 2019-07-10 23:48:43 +02:00
Ricardo Maes
bc1ddcad01 Implement "skipLocked()" and "noWait()" (#2961) 2019-07-06 14:05:53 +02:00
Igor Savin
f328fbbdb4
Expose executionPromise for transactors (#3297) 2019-06-19 22:12:21 +02:00
Keith Smith
141b202969 adds stub to seeds type (#3296) 2019-06-19 17:51:26 +02:00
David Mair Spiess
f70b7264b2 Add pgsql specific table builder method typings (#3146) 2019-06-19 10:21:41 +02:00
Joel Gallant
31983c19a4 Adds stub type definition (#3279) 2019-06-18 00:40:08 +02:00
shaungreen
87d4c0b374 Fix MSSQL config typings (#3269) 2019-06-10 15:15:33 +02:00
Lorefnon
a47756e7a1 [Typings] Add workarounds for degraded inference when strictNullChecks is set to false (#3275)
Closes #3274
2019-06-09 21:12:27 +02:00
Igor Savin
2ccaf3d724
Remove bluebird promises from typings. Do not pass promise to migrations and seeds. Remove knex.Promise (#3266) 2019-06-08 01:16:34 +02:00