2.10.0 • Published 5 days ago
@themost/pool v2.10.0
themost-pool
Most Web Framework data adapter for connection pooling
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
adapter uses generic-pool.
Read more about generic-pool
here
Important Note: Upgrade from 2.2.x to 2.5.x
Replace @themost/pool@2.2.x
configuration:
{
"adapter": "development",
"size": 25,
"timeout": 30000,
"lifetime": 1200000
}
with:
{
"adapter": "development",
"max": 25,
"acquireTimeoutMillis": 30000
}
2.9.1
5 days ago
2.10.0
5 days ago
2.9.0
5 days ago
2.8.0
10 days ago
2.7.1
10 days ago
2.7.0
19 days ago
2.6.0
2 months ago
2.5.2
4 years ago
2.5.1
4 years ago
2.2.6
4 years ago
2.2.5
4 years ago
2.5.0
4 years ago
2.5.0-dev.1
4 years ago
2.2.2
5 years ago
2.1.1
6 years ago
2.0.7
6 years ago
2.0.5
6 years ago
2.0.4
6 years ago
2.0.0-alpha.1
7 years ago
2.0.0-alpha
7 years ago