{"_id":"any-db-pool","_rev":"3018693","name":"any-db-pool","description":"Any-DB connection pool","dist-tags":{"latest":"2.3.0"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"time":{"modified":"2023-11-06T06:32:53.000Z","created":"2012-12-25T19:09:53.056Z","2.3.0":"2020-12-01T11:41:24.608Z","2.2.0":"2017-02-04T15:34:37.000Z","2.1.0":"2014-05-20T20:13:32.533Z","2.0.1":"2013-12-25T03:36:02.115Z","2.0.0":"2013-12-24T05:47:53.619Z","1.0.3":"2013-12-22T03:13:41.112Z","1.0.2":"2013-12-22T03:06:18.461Z","1.0.1":"2013-12-20T03:40:46.705Z","1.0.0":"2013-11-06T01:29:17.941Z","1.0.0-rc2":"2013-11-01T04:12:55.379Z","1.0.0-rc1":"2013-10-17T18:10:41.854Z","1.0.0-alpha2":"2013-09-18T04:18:28.760Z","0.1.0":"2013-09-08T23:55:24.712Z","0.0.6":"2013-05-12T01:50:40.782Z","0.0.5":"2013-02-20T21:45:38.212Z","0.0.4":"2013-02-20T18:28:44.169Z","0.0.3":"2013-02-20T18:08:54.652Z","0.0.2":"2013-02-07T08:50:12.574Z","0.0.1":"2013-01-31T22:41:43.781Z","0.0.0":"2012-12-25T19:09:53.056Z"},"users":{},"author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"repository":{"type":"git","url":"git+https://github.com/grncdr/node-any-db-pool.git"},"versions":{"2.3.0":{"name":"any-db-pool","version":"2.3.0","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","scripts":{"test":"covert tests/*.js"},"repository":{"type":"git","url":"git+https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"devDependencies":{"any-db-fake":"2.3.0","covert":"~0.1.1","extend":"~1.2.1","tape":"~2.3.2"},"homepage":"https://github.com/grncdr/node-any-db-pool#readme","_id":"any-db-pool@2.3.0","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"shasum":"353bc2953edb0b8542d644ed362c5ec464d18cd2","size":7535,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-2.3.0.tgz"},"_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"directories":{},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/any-db-pool_2.3.0_1606822884426_0.07220525963799096"},"_hasShrinkwrap":false,"publish_time":1606822884608,"_cnpm_publish_time":1606822884608,"_cnpmcore_publish_time":"2021-12-18T22:43:53.668Z"},"2.2.0":{"name":"any-db-pool","version":"2.2.0","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","scripts":{"test":"covert tests/*.js"},"repository":{"type":"git","url":"git+https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"devDependencies":{"tape":"~2.3.2","any-db-fake":"~0.0.3","covert":"~0.1.1","extend":"~1.2.1"},"gitHead":"311537a2aea8009e4417794af402a5403bf3e75b","homepage":"https://github.com/grncdr/node-any-db-pool#readme","_id":"any-db-pool@2.2.0","_shasum":"6bd8cde39627adc0724b189608b7f96795470e93","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"dist":{"shasum":"6bd8cde39627adc0724b189608b7f96795470e93","size":7965,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-2.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/any-db-pool-2.2.0.tgz_1486222474980_0.8990299378056079"},"directories":{},"publish_time":1486222477000,"_hasShrinkwrap":false,"_cnpm_publish_time":1486222477000,"_cnpmcore_publish_time":"2021-12-18T22:43:53.898Z"},"2.1.0":{"name":"any-db-pool","version":"2.1.0","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","scripts":{"test":"covert tests/*.js"},"repository":{"type":"git","url":"https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"devDependencies":{"tape":"~2.3.2","any-db-fake":"~0.0.3","covert":"~0.1.1","extend":"~1.2.1"},"_id":"any-db-pool@2.1.0","dist":{"shasum":"a8fc76b7271224c8e94c1d1233c62945c7a65d5e","size":7222,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-2.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1400616812533,"_hasShrinkwrap":false,"_cnpm_publish_time":1400616812533,"_cnpmcore_publish_time":"2021-12-18T22:43:54.108Z"},"2.0.1":{"name":"any-db-pool","version":"2.0.1","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","scripts":{"test":"covert tests/*.js"},"repository":{"type":"git","url":"https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"devDependencies":{"tape":"~2.3.2","any-db-fake":"~0.0.3","covert":"~0.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@2.0.1","dist":{"shasum":"b88a824ee362eca35524a8800dec73d9f49c3243","size":6051,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-2.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1387942562115,"_hasShrinkwrap":false,"_cnpm_publish_time":1387942562115,"_cnpmcore_publish_time":"2021-12-18T22:43:54.313Z"},"2.0.0":{"name":"any-db-pool","version":"2.0.0","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","scripts":{"test":"covert tests/*.js"},"repository":{"type":"git","url":"https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"devDependencies":{"tape":"~2.3.2","any-db-fake":"~0.0.2","covert":"~0.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@2.0.0","dist":{"shasum":"d892bcd534f93e969a4df130a5c8f7e2cba25331","size":6053,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-2.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1387864073619,"_hasShrinkwrap":false,"_cnpm_publish_time":1387864073619,"_cnpmcore_publish_time":"2021-12-18T22:43:54.602Z"},"1.0.3":{"name":"any-db-pool","version":"1.0.3","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","scripts":{"test":"tape tests/*.js"},"repository":{"type":"git","url":"https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","any-db-transaction":"~0.0.1","once":"~1.1.1"},"devDependencies":{"tape":"~2.3.2","any-db-fake":"0.0.0"},"readmeFilename":"README.md","_id":"any-db-pool@1.0.3","dist":{"shasum":"8f386acf1e4ad8e3ffba1e282813a183b3269517","size":5515,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-1.0.3.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1387682021112,"_hasShrinkwrap":false,"_cnpm_publish_time":1387682021112,"_cnpmcore_publish_time":"2021-12-18T22:43:54.819Z"},"1.0.2":{"name":"any-db-pool","version":"1.0.2","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","scripts":{"test":"tape tests/*.js"},"repository":{"type":"git","url":"https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","any-db-transaction":"0.0.1","once":"~1.1.1"},"devDependencies":{"tape":"~2.3.2","any-db-fake":"0.0.0"},"readmeFilename":"README.md","_id":"any-db-pool@1.0.2","dist":{"shasum":"472bf519c9eaa6a6131c29fdd3a9e31c2cdbeff6","size":5513,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1387681578461,"_hasShrinkwrap":false,"_cnpm_publish_time":1387681578461,"_cnpmcore_publish_time":"2021-12-18T22:43:55.081Z"},"1.0.1":{"name":"any-db-pool","version":"1.0.1","description":"Any-DB connection pool","main":"index.js","author":{"name":"Stephen Sugden","email":"me@stephensugden.com"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/grncdr/node-any-db-pool.git"},"bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@1.0.1","dist":{"shasum":"d5df6e988705c1d98978a4b95705f5a657839443","size":2831,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1387510846705,"_hasShrinkwrap":false,"_cnpm_publish_time":1387510846705,"_cnpmcore_publish_time":"2021-12-18T22:43:55.286Z"},"1.0.0":{"name":"any-db-pool","version":"1.0.0","description":"Any-DB connection pool","main":"index.js","repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@1.0.0","dist":{"shasum":"fad7779a0e6d780047ce4f4ff320f2eb5aefeefa","size":2743,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1383701357941,"_hasShrinkwrap":false,"_cnpm_publish_time":1383701357941,"_cnpmcore_publish_time":"2021-12-18T22:43:55.519Z"},"1.0.0-rc2":{"name":"any-db-pool","version":"1.0.0-rc2","description":"Any-DB connection pool","main":"index.js","repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@1.0.0-rc2","dist":{"shasum":"ad4478fc1eb0cbd573b421a481cf05939d414093","size":2745,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-1.0.0-rc2.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-1.0.0-rc2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1383279175379,"_hasShrinkwrap":false,"_cnpm_publish_time":1383279175379,"_cnpmcore_publish_time":"2021-12-18T22:43:55.755Z"},"1.0.0-rc1":{"name":"any-db-pool","version":"1.0.0-rc1","description":"Any-DB connection pool","main":"index.js","repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@1.0.0-rc1","dist":{"shasum":"1a5608da51a7130c5f64ba582b719e41a0292119","size":2740,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-1.0.0-rc1.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-1.0.0-rc1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1382033441854,"_hasShrinkwrap":false,"_cnpm_publish_time":1382033441854,"_cnpmcore_publish_time":"2021-12-18T22:43:55.960Z"},"1.0.0-alpha2":{"name":"any-db-pool","version":"1.0.0-alpha2","description":"Any-DB connection pool","main":"index.js","repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"_id":"any-db-pool@1.0.0-alpha2","dist":{"shasum":"e77b888ec7a4b303e2ef021f9226fc5051e57569","size":2754,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-1.0.0-alpha2.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-1.0.0-alpha2.tgz"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1379477908760,"_hasShrinkwrap":false,"_cnpm_publish_time":1379477908760,"_cnpmcore_publish_time":"2021-12-18T22:43:56.185Z"},"0.1.0":{"name":"any-db-pool","version":"0.1.0","description":"Any-DB connection pool","main":"index.js","repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@0.1.0","dist":{"shasum":"f5a6e816df175bc017954e8161cb03668db94893","size":2770,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1378684524712,"_hasShrinkwrap":false,"_cnpm_publish_time":1378684524712,"_cnpmcore_publish_time":"2021-12-18T22:43:56.363Z"},"0.0.6":{"name":"any-db-pool","version":"0.0.6","description":"AnyDB connection pool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"readmeFilename":"README.md","_id":"any-db-pool@0.0.6","dist":{"shasum":"6c8c18452e0730515c6599b7ed064ad76c6de830","size":2590,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.0.6.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1368323440782,"_hasShrinkwrap":false,"_cnpm_publish_time":1368323440782,"_cnpmcore_publish_time":"2021-12-18T22:43:56.571Z"},"0.0.5":{"name":"any-db-pool","version":"0.0.5","description":"AnyDB connection pool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"_id":"any-db-pool@0.0.5","dist":{"shasum":"ecd8a691353809008126df8afeacc2d4c56433d1","size":2587,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.0.5.tgz"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1361396738212,"_hasShrinkwrap":false,"_cnpm_publish_time":1361396738212,"_cnpmcore_publish_time":"2021-12-18T22:43:56.781Z"},"0.0.4":{"name":"any-db-pool","version":"0.0.4","description":"AnyDB connection pool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"_id":"any-db-pool@0.0.4","dist":{"shasum":"59f97737672d66e31c21c323ccbb6c028420cb1e","size":2586,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.0.4.tgz"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1361384924169,"_hasShrinkwrap":false,"_cnpm_publish_time":1361384924169,"_cnpmcore_publish_time":"2021-12-18T22:43:56.999Z"},"0.0.3":{"name":"any-db-pool","version":"0.0.3","description":"AnyDB connection pool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"_id":"any-db-pool@0.0.3","dist":{"shasum":"c358338951bd91d591ae48527e3e082a1c0dcf60","size":2566,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.0.3.tgz"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1361383734652,"_hasShrinkwrap":false,"_cnpm_publish_time":1361383734652,"_cnpmcore_publish_time":"2021-12-18T22:43:57.201Z"},"0.0.2":{"name":"any-db-pool","version":"0.0.2","description":"AnyDB connection pool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2","once":"~1.1.1"},"_id":"any-db-pool@0.0.2","dist":{"shasum":"507fc344474dcd0165202b5437848960828ce562","size":3541,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.0.2.tgz"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"deprecated":"pool close callbacks are never called with this version","publish_time":1360227012574,"_hasShrinkwrap":false,"_cnpm_publish_time":1360227012574,"_cnpmcore_publish_time":"2021-12-18T22:43:57.503Z"},"0.0.1":{"name":"any-db-pool","version":"0.0.1","description":"AnyDB connection pool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2"},"_id":"any-db-pool@0.0.1","dist":{"shasum":"437152f41f8f02db64c34bf13f1c0206f4350ae7","size":3373,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.0.1.tgz"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1359672103781,"_hasShrinkwrap":false,"_cnpm_publish_time":1359672103781,"_cnpmcore_publish_time":"2021-12-18T22:43:57.712Z"},"0.0.0":{"name":"any-db-pool","version":"0.0.0","description":"AnyDB connection pool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":"","license":"BSD","dependencies":{"generic-pool":"~2.0.2"},"_id":"any-db-pool@0.0.0","dist":{"shasum":"1c3455098b484522d25cac5980e4f57bd514bf95","size":1294,"noattachment":false,"key":"/any-db-pool/-/any-db-pool-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-db-pool/download/any-db-pool-0.0.0.tgz"},"_npmVersion":"1.1.70","_npmUser":{"name":"grncdr","email":"glurgle@gmail.com"},"maintainers":[{"name":"grncdr","email":"glurgle@gmail.com"}],"directories":{},"publish_time":1356462593056,"_hasShrinkwrap":false,"_cnpm_publish_time":1356462593056,"_cnpmcore_publish_time":"2021-12-18T22:43:57.937Z"}},"readme":"# any-db-pool - database agnostic connection pool\n\n[![Build Status](https://secure.travis-ci.org/grncdr/node-any-db.png?branch=master)](http://travis-ci.org/grncdr/node-any-db-pool)\n\n## Synopsis\n\n```javascript\nvar anyDB = require('any-db')\n\nvar pool = anyDB.createPool('postgres://user:pass@localhost/dbname', {\n  min: 5,\n  max: 15,\n  reset: function(conn, done) {\n    conn.query('ROLLBACK', done)\n  },\n})\n\n// Proxies to mysql's connection.query\nvar q = pool.query('SELECT 1', function(err, res) {})\n```\n\n_Note:_ As shown above, [ConnectionPool](#api) instances are usually created\nwith [anyDB.createPool][createpool]. The [any-db][] package will be installed\nalongside any adapters (e.g. [any-db-postgres][]), so most users should depend\non their adapter and **not** on `any-db` or `any-db-pool`.\n\n## Description\n\nThis package contains a database connection pool that can be used with any\ndriver, but it requires an [any-db compliant adapter][adapter]. If you are\nwriting a library that needs to support multiple database backends (e.g.\nSQLite3 or Postgres or MySQL) then it's strongly recommended that you add\n[any-db][] toyour `peerDependencies` and rely on [createPool][] instead of\ndepending on this package directly.\n\n## API\n\n```ocaml\nmodule.exports := (Adapter, adapterConfig: Object, PoolConfig) => ConnectionPool\n\nConnectionPool := EventEmitter & {\n  adapter: String,\n  query:   (String, Array?, Continuation<ResultSet>?) => Query,\n  acquire: (Continuation<Connection>) => void,\n  release: (Connection) => void,\n  close:   (Continuation<void>?) => void,\n}\n\nPoolConfig := {\n  min: Number?,\n  max: Number?,\n  idleTimeout: Number?,\n  reapInterval: Number?,\n  refreshIdle: Boolean?,\n  onConnect: (Connection, ready: Continuation<Connection>) => void\n  reset: (Connection, done: Continuation<void>) => void\n  shouldDestroyConnection: (error: Error) => Boolean\n}\n```\n\n### PoolConfig\n\nA `PoolConfig` is generally a plain object with any of the following properties (they are all optional):\n\n- `min` (default `0`) The minimum number of connections to keep open in the pool.\n- `max` (default `10`) The maximum number of connections to keep open in the pool. When this limit is reached further requests for connections will queue waiting for an existing connection to be released back into the pool.\n- `refreshIdle` (default `true`) When this is true, the pool will reap connections that have been idle for more than `idleTimeout` milliseconds.\n- `idleTimeout` (default `30000`) The maximum amount of time a connection can sit idle in the pool before being reaped.\n- `reapInterval` (default `1000`) How frequently the pool should check for connections that are old enough to be reaped.\n- `onConnect` Called immediately after a connection is first established. Use this to do one-time setup of new connections. The supplied `Connection` will not be added to the pool until you pass it to the `done` continuation.\n- `reset` Called each time a connection is returned to the pool. Use this to restore a connection to it's original state (e.g. rollback transactions, set the database session vars). If `reset` fails to call the `done` continuation the connection will be lost in limbo.\n- `shouldDestroyConnection` (default `function (err) { return true }`) - Called\n  when an error is encountered by `pool.query` or emitted by an idle\n  connection. If `shouldDestroyConnection(error)` is truthy the connection will\n  be destroyed, otherwise it will be reset.\n\n### ConnectionPool.query\n\n```ocaml\n(String, Array?, Continuation<ResultSet>?) => Query\n```\n\nImplements [Queryable.query][] by automatically acquiring a connection and\nreleasing it when the query completes.\n\n### ConnectionPool.acquire\n\n```ocaml\n(Continuation<Connection>) => void\n```\n\nRemove a connection from the pool. If you use this method you **must** return\nthe connection back to the pool using [ConnectionPool.release](#connectionpoolrelease)\n\n### ConnectionPool.release\n\n```ocaml\n(Connection) => void\n```\n\nReturn a connection to the pool. This should only be called with connections\nyou've manually [acquired](#connectionpoolacquire). You **must not** continue\nto use the connection after releasing it.\n\n### ConnectionPool.close\n\n```ocaml\n(Continuation<void>?) => void\n```\n\nStop giving out new connections, and close all existing database connections as\nthey are returned to the pool.\n\n### ConnectionPool.adapter\n\nThe string name of the adapter used for this connection pool, e.g. `'sqlite3'`.\n\n### ConnectionPool events\n\n#### Acquire event\n\nAn `'acquire'` event is emitted by a ConnectionPool whenever the pool's\n[`acquire()`](#connectionpoolacquire) method is invoked.\n\nNo arguments are passed to event listeners.\n\n#### Release event\n\nA `'release'` event is emitted by a ConnectionPool whenever the pool's\n[`release()`](#connectionpoolrelease) method is invoked.\n\nNo arguments are passed to event listeners.\n\n#### Query event\n\nA `'query'` event is emitted by a ConnectionPool immediately after the pool's\n[`query()`](#connectionpoolquery) method is invoked.\n\nOne argument is passed to event listeners:\n\n- `query` - a [Query][] object.\n\n#### Close event\n\nA `'close'` event is emitted by a ConnectionPool when the pool has closed all\nof it's connections. Invoking a pool's [`close()`](#connectionpoolclose) method would cause a `close`\nevent to be emitted.\n\nNo arguments are passed to event listeners.\n\n## Why wouldn't I just use `generic-pool`?\n\n[generic-pool][gpool] is awesome, but it's _very_ generic. This is a Good\nThing for a library with \"generic\" in the name, but not so good for the very\ncommon but slightly more specialized case of pooling stateful SQL database\nconnections. This library uses `generic-pool` and simply augments it with some\nadded niceties:\n\n- Hooks for initializing and/or resetting connection state when connections are added or returned to the pool.\n- A `query` method that allows queries to be performed without the user needing a reference to a connection object (and potentially leaking that reference).\n\n## Stop telling me not to use this directly\n\nOk, if you really want to use this package without using the [any-db][]\nfrontend you should provide a compliant [Adapter][] implementation:\n\n```javascript\nvar ConnectionPool = require('any-db-pool')\nvar adapter = require('my-custom-adapter')\nvar connectionParams = { user: 'scott', password: 'tiger' }\nvar poolParams = {\n  min: 5,\n  max: 15,\n  reset: function(conn, done) {\n    conn.query('ROLLBACK', done)\n  },\n}\nvar pool = new ConnectionPool(adapter, connectionParams, poolParams)\n```\n\nHowever, it would be awesome if you just published your adapter as a\npackage named `any-db-$name` so that everybody could use it :+1:\n\n## License\n\nMIT\n\n[gpool]: http://npm.im/generic-pool\n[any-db]: https://github.com/grncdr/node-any-db\n[any-db-postgres]: https://github.com/grncdr/node-any-db-postgres\n[adapter]: https://github.com/grncdr/node-any-db-adapter-spec#adapter\n[createpool]: https://github.com/grncdr/node-any-db#exportscreatepool\n[queryable.query]: https://github.com/grncdr/node-any-db-adapter-spec#queryablequery\n[query]: https://github.com/grncdr/node-any-db-adapter-spec#query\n","_attachments":{},"homepage":"https://github.com/grncdr/node-any-db-pool#readme","bugs":{"url":"https://github.com/grncdr/node-any-db-pool/issues"},"license":"BSD-2-Clause"}