# qc-client-pool

> Pool Querycache connections for Node.js

Latest version **0.2.19** (published 2018-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install qc-client-pool
pnpm add qc-client-pool
yarn add qc-client-pool
bun add qc-client-pool
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.19 |
| Published | 2018-05-30 |
| First published | 2016-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.8 |
| Dependencies | 4 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | uzysjung |
| Maintainers | uzysjung |
| Keywords | querycache, qc, qc-client, pool |

## Links

- npm: https://www.npmjs.com/package/qc-client-pool
- Repository: https://github.com/skpdi/qc-client-pool
- Homepage: https://github.com/skpdi/qc-client-pool#readme
- Issues: https://github.com/skpdi/qc-client-pool/issues
- npm.io page: https://npm.io/package/qc-client-pool

## Dependencies (4)

- [co](https://npm.io/package/co.md) 4.x.x
- [underscore](https://npm.io/package/underscore.md) ~1.8.3
- [di-qc-client](https://npm.io/package/di-qc-client.md) 0.23.10
- [generic-pool](https://npm.io/package/generic-pool.md) 2.4.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.2.19 (latest) — 2018-05-30
- 0.2.18 — 2016-12-02
- 0.2.17 — 2016-12-01
- 0.2.16 — 2016-12-01
- 0.2.15 — 2016-12-01
- 0.2.14 — 2016-11-30
- 0.2.13 — 2016-11-30
- 0.2.12 — 2016-11-30
- 0.2.11 — 2016-11-21
- 0.2.9 — 2016-09-27
- 0.2.8 — 2016-08-03
- 0.2.7 — 2016-07-28
- 0.2.6 — 2016-06-21
- 0.2.5 — 2016-06-20
- 0.2.4 — 2016-06-20
- … 13 more at https://npm.io/package/qc-client-pool/versions

## README

# qc-client-pool
Pool Querycache connections for Node.js

## Installation

```
$ npm install qc-client-pool
```
## Examples

```js
const QCPool = require("../index");
const co = require('co');
const qcPool = new QCPool({min: 5,max:10,queryTimeout:10000},'your_server','id','password');
co(function*(){

    try {

        let connection = yield qcPool.acquire();
        let sql = "select * from table limit 5";
        let result = yield qcPool.query(connection,sql);
        console.log("result Array:",result);

        connection = yield qcPool.acquire();
        sql = "select * from table limit 5";
        result = yield qcPool.query(connection,sql,{rowResultType:"Dictionary"});
        console.log("result Dictionary:",result);

    } catch(e) {
        console.log("error occurred :",e);
    }

    console.log("PoolSize : ",qcPool.getPoolSize());
    console.log("MaxPoolsize : ",qcPool.getMaxPoolSize());

});
```

## License

  MIT

---
_Source: https://npm.io/package/qc-client-pool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
