mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
This supports the connection parameter documented here: https://www.postgresql.org/docs/9.1/libpq-connect.html#LIBPQ-CONNECT-OPTIONS
16 lines
363 B
TypeScript
16 lines
363 B
TypeScript
export function parse(connectionString: string): ConnectionOptions
|
|
|
|
export interface ConnectionOptions {
|
|
host: string | null
|
|
password?: string
|
|
user?: string
|
|
port?: string | null
|
|
database: string | null | undefined
|
|
client_encoding?: string
|
|
ssl?: boolean | string
|
|
|
|
application_name?: string
|
|
fallback_application_name?: string
|
|
options?: string
|
|
}
|