MCPcopy
hub / github.com/sequelize/sequelize / PoolOptions

Interface PoolOptions

src/sequelize.d.ts:85–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 * Connection Pool options
84 */
85export 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
123export interface ConnectionOptions {
124 host?: string;

Implementers 15

Modelsrc/model.js
InstanceValidatorsrc/instance-validator.js
STRINGsrc/data-types.js
TEXTsrc/data-types.js
CITEXTsrc/data-types.js
NUMBERsrc/data-types.js
INTEGERsrc/data-types.js
FLOATsrc/data-types.js
DECIMALsrc/data-types.js
BOOLEANsrc/data-types.js
DATEsrc/data-types.js
HSTOREsrc/data-types.js

Calls

no outgoing calls

Tested by

no test coverage detected