rbt_mssql-pool-party
Version:
Extension of mssql that provides management of multiple connection pools, dsns, retries, and more
12 lines (10 loc) • 499 B
JavaScript
;Object.defineProperty(exports, "__esModule", { value: true });exports["default"] = copyPoolStats; /* eslint no-param-reassign: 0 */
var statKeys = ['healCount', 'promotionCount', 'retryCount', 'lastPromotionAt', 'lastHealAt'];
// this function mutates toPool
function copyPoolStats(fromPool, toPool) {
statKeys.forEach(function (statKey) {
toPool[statKey] = fromPool[statKey];
});
return toPool;
}module.exports = exports.default;
//# sourceMappingURL=copy-pool-stats.js.map