@themost/pool
Most Web Framework Connection Pooling Data Adapter
Last updated 3 months ago by themost .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @themost/pool 
SYNC missed versions from official npm registry.

@themost/pool

Most Web Framework Data Pool Adapter

Install

npm install @themost/pool

Usage

Register Generic Pool Adapter on app.json as follows:

"adapterTypes": [
    ...
    { "name":"...", "invariantName": "...", "type":"..." },
    { "name":"Pool Data Adapter", "invariantName": "pool", "type":"@themost/pool" }
    ...
],
adapters: [
    ...
    { "name":"development", "invariantName":"...", "default":false,
        "options": {
          "server":"localhost",
          "user":"user",
          "password":"password",
          "database":"test"
        }
    },
    { "name":"development_with_pool", "invariantName":"pool", "default":true,
                "options": {
                  "adapter":"development"
                }
            }
    ...
]

The generic pool adapter will try to instantiate the adapter defined in options.adapter property.

Options

  • adapter: The name of the data adapter to be linked with this pool adapter.

@themost/pool uses generic-pool. Read more about other options here: generic-pool documentation

Current Tags

  • 2.5.0                                ...           latest (3 months ago)
  • 2.5.0-dev.1                                ...           next (3 months ago)

9 Versions

  • 2.5.0                                ...           3 months ago
  • 2.5.0-dev.1                                ...           3 months ago
  • 2.2.2                                ...           a year ago
  • 2.1.1                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.0-alpha.1                                ...           3 years ago
  • 2.0.0-alpha                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 4
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |