| 15 | } |
| 16 | |
| 17 | export interface ConnectionOptions { |
| 18 | host: string | null |
| 19 | password?: string |
| 20 | user?: string |
| 21 | port?: string | null |
| 22 | database: string | null | undefined |
| 23 | client_encoding?: string |
| 24 | ssl?: boolean | string | SSLConfig |
| 25 | sslnegotiation?: 'postgres' | 'direct' |
| 26 | |
| 27 | application_name?: string |
| 28 | fallback_application_name?: string |
| 29 | options?: string |
| 30 | keepalives?: number |
| 31 | |
| 32 | // We allow any other options to be passed through |
| 33 | [key: string]: unknown |
| 34 | } |
| 35 | |
| 36 | export function toClientConfig(config: ConnectionOptions): ClientConfig |
| 37 | export function parseIntoClientConfig(connectionString: string): ClientConfig |
nothing calls this directly
no outgoing calls
no test coverage detected