Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kbarbounakis/most-data-pool
Most Web Framework Data Adapter Pool Extension
https://github.com/kbarbounakis/most-data-pool
Last synced: about 1 month ago
JSON representation
Most Web Framework Data Adapter Pool Extension
- Host: GitHub
- URL: https://github.com/kbarbounakis/most-data-pool
- Owner: kbarbounakis
- License: other
- Created: 2015-08-17T09:07:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-24T12:05:53.000Z (over 8 years ago)
- Last Synced: 2024-03-25T12:20:23.546Z (8 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# most-data-pool
Most Web Framework Generic Pool Adapter
##Install
$ npm install most-data-pool
##Usage
Register Generic Pool Adapter on app.json as follows:"adapterTypes": [
...
{ "name":"...", "invariantName": "...", "type":"..." },
{ "name":"Pool Data Adapter", "invariantName": "pool", "type":"most-data-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.
###size:
The number of the data adapters that are going to be pooled for new connections. The default value is 25.
###timeout:
A number of milliseconds to wait for getting a new data adapter. If this timeout exceeds, a timeout error will occured. The default value is 30000.
###lifetime
A number of milliseconds which indicates whether or not a pooled data adapter will be automatically ejected from data adapters' collection. The default value is 1200000.