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