Re: Integration of Psycopg with XTA

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Christian Ferrari <camauz(at)yahoo(dot)com>
Cc: psycopg(at)lists(dot)postgresql(dot)org
Subject: Re: Integration of Psycopg with XTA
Date: 2018-09-26 12:25:45
Message-ID: CA+mi_8a5Sm=Zum+8uRX+gDLrzzEU+F-x5xjommxL5e7jLBxHkg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Tue, Sep 25, 2018 at 9:57 PM Christian Ferrari <camauz(at)yahoo(dot)com> wrote:

> Stated that replacing "PGconn *" with "void *" in the API stack would not be an issue, the question is: what's the best way to retrieve something that can be transformed in a C pointer that could be passed to XTA constructor?

This is a hack I passed some time ago to an ukulele friend to get the
PGconn pointer out of the connection object:
<https://gist.github.com/dvarrazzo/b7c8f050bbd39dd2c104>. You may need
trasposing it for guitar though.

-- Daniele

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Christian Ferrari 2018-09-26 20:36:38 Re: Integration of Psycopg with XTA
Previous Message Federico Di Gregorio 2018-09-26 07:33:22 Re: Integration of Psycopg with XTA