[Zope-dev] Using db_connections from Zope products

Dieter Maurer dieter@handshake.de
Wed, 20 Jun 2001 20:48:58 +0200 (CEST)


Tom Brown writes:
 > I would like to make an SQL query directly from python
 > code....
 > Suppose I am using the ZPoPy DA and 
 > have established a database connection externally. 
Database connections expose an interface to ZSQL methods,
that you can use directly from your Python code.

I do not know of a documentation of this interface.
However, when you look at

	 Shared.DC.ZRDB.DA.DA

(this is the Z SQL Method implementation, despite it name
"Database Adapter"), you should easily find the
few methods, you may need.


Dieter