I was hoping there was something more elegant than just trying and
catching a possible exception.
The motivation is just simpler and more readable code like
if not connection.is_valid():
   get another one



On Aug 30, 5:25 pm, "Paul Johnston" <[EMAIL PROTECTED]> wrote:
> How about, conn.execute('select 1')
>
> On 8/30/07, Moshe C. <[EMAIL PROTECTED]> wrote:
>
>
>
> > How can I test whether a connection object is valid and hasn't, for
> > example, been time outed by the server?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to