Skip to main content

Interface: DBParams

@divine/uri.DBParams

Database configuration parameters.

Hierarchy

  • URIParams

    DBParams

Properties

connectOptions

Optional connectOptions: Params

Custom options to send to the database when openeing a connection. Depends on the database driver.

Defined in

uri/src/protocols/database.ts:256


console

Optional console: Console

A Console to use for debug logging.

Inherited from

URIParams.console

Defined in

uri/src/selectors.ts:64


keepalive

Optional keepalive: number

How often the status of an unused connection should be checked. Default is defaultKeepalive (10 seconds).

Defined in

uri/src/protocols/database.ts:247


maxConnections

Optional maxConnections: number

The maximum number of connections to use. Default is defaultMaxConnections (10 connections).

Defined in

uri/src/protocols/database.ts:253


timeout

Optional timeout: number

Maximum time to wait for a free connection, in milliseconds. Default is defaultTimeout (60 seconds).

Defined in

uri/src/protocols/database.ts:235


tls

Optional tls: SecureContextOptions & { rejectUnauthorized?: boolean }

SSL/TLS parameters.

Defined in

uri/src/protocols/database.ts:259


ttl

Optional ttl: number

How long an unused connection should be kept before it's closed. Default is defaultTTL (30 seconds).

Defined in

uri/src/protocols/database.ts:241