[python-sybase] Can I get the underlying connection object?

Sébastien Sablé sable.sungard at gmail.com
Thu Dec 14 02:55:58 EST 2006


Hi Skip,

you can't do that at the moment.

you would have to extend the following struct in conn.c in order to
expose the 'conn' attribute:
static struct memberlist CS_CONNECTION_memberlist[]

regards

--
Sébastien Sablé

2006/12/12, skip at pobox.com <skip at pobox.com>:
> Is it possible to get the underlying CS_CONNECTION object from the
> ConnectionType object somehow?  We have applications where both Python code
> and wrapped C++ code make SQL queries and would like to make just a single
> connection to the database (modulo connection locking issues of course).
>
> --
> Skip Montanaro - skip at pobox.com - http://www.mojam.com/
> "The hippies and the hipsters did some great stuff in the sixties,
> but the geeks pulled their weight too." -- Billy Bragg
> _______________________________________________
> Python-sybase mailing list
> Python-sybase at www.object-craft.com.au
> https://www.object-craft.com.au/cgi-bin/mailman/listinfo/python-sybase
>


More information about the Python-sybase mailing list