Skip site navigation (1) Skip section navigation (2)

Re: Psycopg2 and LIXA

From: Federico Di Gregorio <fog(at)dndg(dot)it>
To: psycopg(at)postgresql(dot)org
Subject: Re: Psycopg2 and LIXA
Date: 2012-02-13 09:17:24
Message-ID: 4F38D524.7040107@dndg.it (view raw or flat)
Thread:
Lists: psycopg
On 13/02/12 10:10, Daniele Varrazzo wrote:
> I assume the function should be called with a Python interpreter well
> initialized, but if lixa is imported by a Python process and the above
> code is called by a function wrapped in a Python call I assume all the
> conditions required are met. Of course everything is pretty
> experimental: psycopg doesn't offer (yet) a C api, nor the import
> file are designed to be used outside the library: if the approach
> works we can provide a Python C API properly done.

That's what I was thinking too but then psycopg users will lose custom 
connection (and cursor) objects. :/ IMHO the best approach would be for 
LIXA to extend its concept of "profile" to include connection factories 
and let Python code to register custom profiles and connection 
factories. I understand that is probably alien to what LIXA does now but 
would increase acceptance by Pythonistas.

federico


In response to

Responses

psycopg by date

Next:From: Christian FerrariDate: 2012-02-13 21:50:18
Subject: Re: Psycopg2 and LIXA
Previous:From: Daniele VarrazzoDate: 2012-02-13 09:10:33
Subject: Re: Psycopg2 and LIXA

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group