mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Update types for PoolOptions
This commit is contained in:
Vendored
+11
-1
@@ -5175,12 +5175,22 @@ declare namespace sequelize {
|
||||
* The maximum time, in milliseconds, that a connection can be idle before being released.
|
||||
*/
|
||||
idle?: number;
|
||||
|
||||
/**
|
||||
* The maximum time, in milliseconds, that pool will try to get connection before throwing error
|
||||
*/
|
||||
acquire?: number;
|
||||
|
||||
/**
|
||||
* A function that validates a connection. Called with client. The default function checks that client is an
|
||||
* object, and that its state is not disconnected.
|
||||
*/
|
||||
validateConnection?: (client?: any) => boolean;
|
||||
validate?: (client?: any) => boolean;
|
||||
|
||||
/*
|
||||
* The time interval, in milliseconds, for evicting stale connections
|
||||
*/
|
||||
evict?: number;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user