mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
mysql: IPoolClusterConfig.restoreNodeTimeout is missing
This commit is contained in:
@@ -222,6 +222,13 @@ var pool = poolCluster.of('SLAVE*', 'RANDOM');
|
||||
pool.getConnection(function (err, connection) { });
|
||||
pool.getConnection(function (err, connection) { });
|
||||
|
||||
var poolClusterWithOptions = mysql.createPoolCluster({
|
||||
canRetry: true,
|
||||
removeNodeErrorCount: 3,
|
||||
restoreNodeTimeout: 1000,
|
||||
defaultSelector: 'RR'
|
||||
});
|
||||
|
||||
// destroy
|
||||
poolCluster.end();
|
||||
|
||||
|
||||
Vendored
+6
@@ -408,6 +408,12 @@ declare module "mysql" {
|
||||
*/
|
||||
removeNodeErrorCount?: number;
|
||||
|
||||
/**
|
||||
* If connection fails, specifies the number of milliseconds before another connection attempt will be made.
|
||||
* If set to 0, then node will be removed instead and never re-used. (Default: 0)
|
||||
*/
|
||||
restoreNodeTimeout?: number;
|
||||
|
||||
/**
|
||||
* The default selector. (Default: RR)
|
||||
* RR: Select one alternately. (Round-Robin)
|
||||
|
||||
Reference in New Issue
Block a user