mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
🤖 Merge PR #45966 [pg] Move application_name field from PoolConfig to ClientConfig by @jayden-chan
This commit is contained in:
parent
ef5026e98d
commit
2255772ff7
5
types/pg/index.d.ts
vendored
5
types/pg/index.d.ts
vendored
@ -10,7 +10,7 @@ import events = require('events');
|
||||
import stream = require('stream');
|
||||
import pgTypes = require('pg-types');
|
||||
|
||||
import { ConnectionOptions } from "tls";
|
||||
import { ConnectionOptions } from 'tls';
|
||||
|
||||
export interface ClientConfig {
|
||||
user?: string;
|
||||
@ -27,6 +27,7 @@ export interface ClientConfig {
|
||||
query_timeout?: number;
|
||||
keepAliveInitialDelayMillis?: number;
|
||||
idle_in_transaction_session_timeout?: number;
|
||||
application_name?: string;
|
||||
}
|
||||
|
||||
export type ConnectionConfig = ClientConfig;
|
||||
@ -46,8 +47,6 @@ export interface PoolConfig extends ClientConfig {
|
||||
connectionTimeoutMillis?: number;
|
||||
idleTimeoutMillis?: number;
|
||||
log?: (...messages: any[]) => void;
|
||||
|
||||
application_name?: string;
|
||||
Promise?: PromiseConstructorLike;
|
||||
}
|
||||
|
||||
|
||||
@ -9,6 +9,7 @@ const client = new Client({
|
||||
port: 5334,
|
||||
user: 'database-user',
|
||||
password: 'secretpassword!!',
|
||||
application_name: 'DefinitelyTyped',
|
||||
keepAlive: true,
|
||||
});
|
||||
client.connect(err => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user