Skip to content

postgrelize / PoolOptions

Type Alias: PoolOptions ​

PoolOptions = Readonly<{ acquire?: number; evict?: number; idle?: number; max?: number; maxUses?: number; min?: number; }>

Defined in: src/connection/options.ts:26

Connection pool settings (Sequelize v6 PoolOptions), given as the pool option of SequelizeOptions.

Example ​

ts
const pool: PoolOptions = { max: 10, idle: 10_000, acquire: 30_000 };
const db = new Sequelize('postgres://user:pass@localhost:5432/app', { pool });

Released under the MIT License.