[PyQt] persistent database connection
Anil
anilet at gmail.com
Mon Sep 7 12:58:29 BST 2009
Hi,
I am populating my table view using a QSqlRelationalTableModel,
It all works well and the application is working- Untill someone leaves it
open overnight and tries to view/update data next morning. The tabe view does
not show anything, can't add/delete/update ,no error messages are produced. I
suspect connection to the database is getting timed out. How can I prevent
it from timing out or how to detect if the connection behind the model is down
I tried
"if connection.open():"
before executing the Query, without success
Any help is much appreciated.
--
--
Regards,
Anil K Thankappan
Phoenix IT Solutions
65 Trafalgar way
Cranbourne East
Ph: 03 5995 3328
Mob: 0422 940 230
anilet at phoenixitsolutions.com.au
Visit our website :www.phoenixitsolutions.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090907/927e4b62/attachment.html
More information about the PyQt
mailing list