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

Interface PoolOptions

types/lib/sequelize.d.ts:80–116  ·  types/lib/sequelize.d.ts::PoolOptions

Source from the content-addressed store, hash-verified

78 * Connection Pool options
79 */
80export 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
118export interface ConnectionOptions {
119 host?: string;

Callers 8

upsertMethod · 0.65
recursiveBulkCreateMethod · 0.65
updateMethod · 0.65
validateMethod · 0.65
validateMethod · 0.65
_validateMethod · 0.65
validateMethod · 0.65

Implementers 15

Modellib/model.js
InstanceValidatorlib/instance-validator.js
STRINGlib/data-types.js
TEXTlib/data-types.js
CITEXTlib/data-types.js
NUMBERlib/data-types.js
INTEGERlib/data-types.js
FLOATlib/data-types.js
DECIMALlib/data-types.js
BOOLEANlib/data-types.js
DATElib/data-types.js
HSTORElib/data-types.js

Calls

no outgoing calls

Tested by

no test coverage detected