everypolitician / webhook-manager

Notifies other apps whenever EveryPolitician data changes, in style of GitHub's webhooks
https://everypolitician-app-manager.herokuapp.com/
1 stars 2 forks source link

Check database connections are valid before using #64

Closed chrismytton closed 8 years ago

chrismytton commented 8 years ago

When a connection is pulled out of the connection pool perform a 'SELECT NULL' operation on it to ensure it's still working, if it isn't then keep trying with other pool connections, finally falling back to creating a new connection is necessary.