Skip to content
Interfaceplugin-kysely-postgresv0.6.0

KyselyOptions

Configuration options for Postgres connection and service discovery.

interface KyselyOptions

connectionString

Optional connection string used when a pool config is provided

readonly connectionString?: string

dir

Directory containing service classes. Make sure file(s)/folder(s) are built to .js in dist and aren't merged into a single file.

readonly dir: string

forceInsecureSSL

Force using insecure SSL

readonly forceInsecureSSL?: boolean

kysely

Kysely config (excludes dialect because it's Postgres for this plugin)

readonly kysely?: Except<KyselyConfig, 'dialect'>

onConnectSQL

Optional SQL statements executed for each new connection

readonly onConnectSQL?: string[]

pool

Optional existing Pool instance or configuration overrides

readonly pool?: Pool | PoolConfig

timeout

How long closing the pool may take during shutdown, in milliseconds.

readonly timeout?: number

Default:10_000