| 78 | * Connection Pool options |
| 79 | */ |
| 80 | export interface PoolOptions { |
| 81 | /** |
| 82 | * Maximum number of connections in pool. Default is 5 |
| 83 | */ |
| 84 | max?: number; |
| 85 | |
| 86 | /** |
| 87 | * Minimum number of connections in pool. Default is 0 |
| 88 | */ |
| 89 | min?: number; |
| 90 | |
| 91 | /** |
| 92 | * The maximum time, in milliseconds, that a connection can be idle before being released |
| 93 | */ |
| 94 | idle?: number; |
| 95 | |
| 96 | /** |
| 97 | * The maximum time, in milliseconds, that pool will try to get connection before throwing error |
| 98 | */ |
| 99 | acquire?: number; |
| 100 | |
| 101 | /** |
| 102 | * The time interval, in milliseconds, after which sequelize-pool will remove idle connections. |
| 103 | */ |
| 104 | evict?: number; |
| 105 | |
| 106 | /** |
| 107 | * The number of times to use a connection before closing and replacing it. Default is Infinity |
| 108 | */ |
| 109 | maxUses?: number; |
| 110 | |
| 111 | /** |
| 112 | * A function that validates a connection. Called with client. The default function checks that client is an |
| 113 | * object, and that its state is not disconnected |
| 114 | */ |
| 115 | validate?(client?: unknown): boolean; |
| 116 | } |
| 117 | |
| 118 | export interface ConnectionOptions { |
| 119 | host?: string; |
no outgoing calls
no test coverage detected