Re: Integration of Psycopg with XTA
От | Daniele Varrazzo |
---|---|
Тема | Re: Integration of Psycopg with XTA |
Дата | |
Msg-id | CA+mi_8aTsj2d+kyrz+86ZOZ8Srno0T5Px6w+SWqfw5iiSPBkcA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Integration of Psycopg with XTA (Federico Di Gregorio <fog@dndg.it>) |
Ответы |
Re: Integration of Psycopg with XTA
|
Список | psycopg |
On Wed, Oct 3, 2018 at 1:44 PM Federico Di Gregorio <fog@dndg.it> wrote: > > On 10/03/2018 02:37 PM, Daniele Varrazzo wrote: > > On Wed, Oct 3, 2018 at 1:28 PM Federico Di Gregorio<fog@dndg.it> wrote: > > > >>> This is interesting because PyCapsule is for sure a "clean" way to pass > >>> the pointer from Psycopg to XTA. > > Fog, maybe it's worth adding the capsules for PGconn and PGresult to > > the objects interface and document them? Can do that for psycopg 2.8. > > If it works I'd add it (and document it as an "internal" extension point > used by other C-level modules) for 2.8, yes. > > By PGresult you mean adding it on the cursor, or the connection? Yes, i'd say a _pgconn attribute or _get_pgconn() method on the connection, a _pgresult thing on the cursor. By the way a read-only attribute as per your implementation seems appropriate to me. Christian, why do you think a function would be better? -- Daniele
В списке psycopg по дате отправления: