Re: Psycopg2 and LIXA
От | Federico Di Gregorio |
---|---|
Тема | Re: Psycopg2 and LIXA |
Дата | |
Msg-id | 4F38D524.7040107@dndg.it обсуждение исходный текст |
Ответ на | Re: Psycopg2 and LIXA (Daniele Varrazzo <daniele.varrazzo@gmail.com>) |
Ответы |
Re: Psycopg2 and LIXA
|
Список | 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
В списке psycopg по дате отправления: