Hello. 

I want to check whenever a soci::session has connection or not to
database. 

I wish something similar to this code:

soci::session sql;
...

if ( sql.is_connected() ) {

}

This feature can be used by clients that remain idle for a long while,
to check whether the server has closed the connection and reconnect if
necessary.

I can't find a member to accomplish that.

Is there any way to do this task with soci without using
sql.get_backend() ?

Thanks.

Daniel


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to