File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { expectAssignable } from 'tsd' ;
2
+
3
+ import { Knex } from '../types' ;
4
+ import * as stream from "stream" ;
5
+
6
+ expectAssignable < Knex . PgConnectionConfig > ( {
7
+ user : '' ,
8
+ database : '' ,
9
+ password : '' ,
10
+ port : 1 ,
11
+ host : '' ,
12
+ connectionString : '' ,
13
+ keepAlive : true ,
14
+ stream : new stream . Duplex ( ) ,
15
+ statement_timeout : false ,
16
+ parseInputDatesAsUTC : false ,
17
+ ssl : true ,
18
+ query_timeout : 2 ,
19
+ keepAliveInitialDelayMillis : 3 ,
20
+ idle_in_transaction_session_timeout : 4 ,
21
+ application_name : '' ,
22
+ connectionTimeoutMillis : 5 ,
23
+ types : {
24
+ getTypeParser : ( ) => { } ,
25
+ } ,
26
+ options : '' ,
27
+ expirationChecker : ( ) => { return true ; } ,
28
+ } ) ;
Original file line number Diff line number Diff line change @@ -3025,6 +3025,7 @@ export declare namespace Knex {
3025
3025
connectionTimeoutMillis ?: number ;
3026
3026
types ?: PgCustomTypesConfig ;
3027
3027
options ?: string ;
3028
+ expirationChecker ?( ) : boolean ;
3028
3029
}
3029
3030
3030
3031
type PgGetTypeParser = ( oid : number , format : string ) => any ;
You can’t perform that action at this time.
0 commit comments