Giter Club home page Giter Club logo

Comments (3)

bwoebi avatar bwoebi commented on June 18, 2024

The reason why this currently is not possible, is that you could have changed the internal state of the connection compared to pool. (e.g. have chosen another database or issued some SET commands).

I was probably overly cautious here and we really should add a way to allow that.

And no, the project is not inactive, it's just one of many amphp libs. We're always replying to issues and also fixing things as necessary.

from mysql.

shtse8 avatar shtse8 commented on June 18, 2024

For the state, I think programmer should handle it well. If we have changed the state, we should reset the state or close the connection but not release it back to the pool. It is hard for us to handle the state perfectly, we need programmer to take care of it.

from mysql.

kelunik avatar kelunik commented on June 18, 2024

Transactions should use a dedicated API, all other things shouldn't return connections to the pool, as we can't know the state of these connections and things are probably going to break in subtle ways, which is hard to debug then. I think transactions have been implemented now, otherwise #24 is the issue to track that.

from mysql.

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.