2022-09-27 22:25:12 +01:00
|
|
|
import { expectAssignable } from 'tsd';
|
|
|
|
|
2023-07-12 21:42:57 +01:00
|
|
|
import { Knex } from '../types';
|
|
|
|
import * as stream from 'stream';
|
2022-09-27 22:25:12 +01:00
|
|
|
|
|
|
|
expectAssignable<Knex.PgConnectionConfig>({
|
|
|
|
user: '',
|
|
|
|
database: '',
|
|
|
|
password: '',
|
|
|
|
port: 1,
|
|
|
|
host: '',
|
|
|
|
connectionString: '',
|
|
|
|
keepAlive: true,
|
2023-12-02 16:52:57 +02:00
|
|
|
stream: () => new stream.Duplex(),
|
2022-09-27 22:25:12 +01:00
|
|
|
statement_timeout: false,
|
|
|
|
parseInputDatesAsUTC: false,
|
|
|
|
ssl: true,
|
|
|
|
query_timeout: 2,
|
|
|
|
keepAliveInitialDelayMillis: 3,
|
|
|
|
idle_in_transaction_session_timeout: 4,
|
|
|
|
application_name: '',
|
|
|
|
connectionTimeoutMillis: 5,
|
|
|
|
types: {
|
|
|
|
getTypeParser: () => {},
|
|
|
|
},
|
|
|
|
options: '',
|
2023-07-12 21:42:57 +01:00
|
|
|
expirationChecker: () => true,
|
2022-09-27 22:25:12 +01:00
|
|
|
});
|