egon-orm-workspace / @egon-orm/mysql / MysqlPoolOptions
Interface: MysqlPoolOptions ​
Defined in: mysql/src/options.ts:17
Pool settings for the pool the adapter creates.
Example ​
ts
const pool: MysqlPoolOptions = { max: 20, idleTimeoutMs: 30_000, connectionTimeoutMs: 5_000 };Properties ​
connectionTimeoutMs? ​
ts
readonly connectionTimeoutMs?: number;Defined in: mysql/src/options.ts:27
How long to wait for a connection, in milliseconds, both to open a new one and for a busy pool to free one; 0 waits forever. Default 0 (opening a connection is bounded by the driver's own 10 seconds).
idleTimeoutMs? ​
ts
readonly idleTimeoutMs?: number;Defined in: mysql/src/options.ts:21
How long an unused connection stays open, in milliseconds. Default 60,000.
max? ​
ts
readonly max?: number;Defined in: mysql/src/options.ts:19
The most connections the pool opens. Default 10.

