tedious-connection-pool
tedious-connection-pool copied to clipboard
Is this project dead?
Hi, has this project been abandoned? latest commits were in 2018 and it is not even compatible with latest version of tedious.
I think itβs definitely dead...
If I have time I'm accepting PRs to an tediousconnectionpool2 fork
I'm accepting PRs to https://github.com/700software/tedious-connection-pool2
So it's slightly less dead than it once was.
Any alternatives for connection pooling ?
I've been using this for years:
https://gist.github.com/clshortfuse/33447c2b731531ecf5a7a224f649e818
let tediousPool = new TediousPool(sqlConfig);
await tediousPool.start();
tediousPool.getConnection((connection) => new Promise((resolve, reject) => {
// Code goes here
It's a little wonky, in retrospect, but it'll automatically release the connection when the promise inside getConnection(promise) gets resolved. I might clean it up a bit more.
Feel free to contribute to https://github.com/700software/tedious-connection-pool2
I've used tedious-connection-pool2 personally with no issues.
I have one PR to merge which I plan to soon. π I've been swamped at work.. β done
For others finding their way to this dead end, I can recommend going with a generic pool implementation like eg. https://github.com/coopernurse/node-pool. Well supported, promise based and with type definitions π