Hi,
I have few widgets loading its data from a MySQL database.
I create a database connection at the start.
If I leave the application open overnight the connection drops out.

How can I detect if the database connection is still active?.
Calling
if db.isOpen():
            logger.debug("DB is valid")

always return valid after the startup, even if network connection is droped.
All the queries return invalid but no exception occurs.


Regards
Anil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to