Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PoolOptions

Connection Pool options.

Used in Options.pool

Hierarchy

  • PoolOptions

Index

Properties

acquire?: number

The maximum time, in milliseconds, that pool will try to get connection before throwing error

evict?: number

The time interval, in milliseconds, after which sequelize-pool will remove idle connections.

idle?: number

The maximum time, in milliseconds, that a connection can be idle before being released

max?: number

Maximum number of connections in pool. Default is 5

maxUses?: number

The number of times to use a connection before closing and replacing it. Default is Infinity

min?: number

Minimum number of connections in pool. Default is 0

Methods

  • validate(client?: unknown): boolean
  • A function that validates a connection. Called with client. The default function checks that client is an object, and that its state is not disconnected

    Parameters

    • Optional client: unknown

    Returns boolean

Generated using TypeDoc