From: Bernhard H. <bh...@in...> - 2002-01-14 14:50:59
|
"Billy G. Allie" <Bil...@mu...> writes: > Bernhard Herzog wrote: > > Is it possible to use pyPgSQL for asynchronous connections? It seems to > > be the only Python/PostgreSQL module that actually wraps the relevant > > libpg functions, but the Python API doesn't provide access to them. Is > > anybody actually using them? > > The pyPgSQL.PgSQL module does not use asynchronous connections. If you need > to use ansynchronous connections you will have to use pyPgSQL.libpq module, > which exposes the appropiate API. That's what I ended up doing. I also modified the copy a bit to reactivate the PQconnectStart bindings for asynchronouse connections and removed the version specific stuff because that wouldn't work with PQconnectStart and we won't need the compatibility code. > Unfortunatly, you will not have access to the DB-API 2.0 constructs. That's not much of a problem. The project I need it for is pretty much tied to PostgreSQL anyway because we're using the PostGIS extensions. Thanks for your reply, Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://mapit.de/ |