Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DB Reconnection #179

Open
roynasser opened this issue Jan 28, 2019 · 5 comments
Open

DB Reconnection #179

roynasser opened this issue Jan 28, 2019 · 5 comments

Comments

@roynasser
Copy link

Hi All, I'm looking at aura as a base for replacing some older code in one of my projects.

One of the items we implemented was reconnection, but I see there is nothing mentioned of it in any issues and it isnt in the code. (I have seen some other wrappers that do implement it).

Is there any reason why automatice reconnection isnt implemented? Is there any recommendation on how to implement this? (i.e. using aura as a decorator for a pdo wrapper that just reconnects? extending aura itself?)

Would there be any interest in this if I were to implement it? (if so I'd be willing to submit a pr)

@peter279k
Copy link

I think the DB reconnection work is required.

And we can use this method to establish database connection again easily.

@harikt
Copy link
Member

harikt commented May 21, 2019

Sorry for late reply. Just noticed the comments here. You may be interested in its predecessor https://github.com/atlasphp/Atlas.Pdo .

@harikt
Copy link
Member

harikt commented May 21, 2019

Regarding your query, does it really lost the connection ?

I was looking at the api, and have an idea, check whether the getPdo is active or not. Else call disconnect and this will connect again on next query.

@djmattyg007
Copy link

@harikt I believe Atlas PDO is the spiritual successor, not the predecessor :)

@harikt
Copy link
Member

harikt commented May 27, 2019 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants