Giter Site home page Giter Site logo

Comments (7)

700software avatar 700software commented on June 11, 2024 1

I'm accepting PRs to https://github.com/700software/tedious-connection-pool2

So it's slightly less dead than it once was.

from tedious-connection-pool.

matispf84 avatar matispf84 commented on June 11, 2024

I think it’s definitely dead...

from tedious-connection-pool.

700software avatar 700software commented on June 11, 2024

If I have time I'm accepting PRs to an tediousconnectionpool2 fork

from tedious-connection-pool.

WafiqSalie avatar WafiqSalie commented on June 11, 2024

Any alternatives for connection pooling ?

from tedious-connection-pool.

clshortfuse avatar clshortfuse commented on June 11, 2024

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.

from tedious-connection-pool.

700software avatar 700software commented on June 11, 2024

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

from tedious-connection-pool.

tobiasheldring avatar tobiasheldring commented on June 11, 2024

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 πŸ‘

from tedious-connection-pool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.