the wire protocol

From: Catonano <catonano(at)gmail(dot)com>
To: pgsql-interfaces(at)lists(dot)postgresql(dot)org
Subject: the wire protocol
Date: 2019-01-19 13:56:09
Message-ID: CAJ98PDxahpFQA_3kErKHwtYmZY36GfELAycts4GZ6BLkzhFb5Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello,

there's this Python project using the so called wire protocol (as far as I
understand)

https://github.com/MagicStack/asyncpg

I'm caressing the idea to create a GNU Guile based project that does the
same thing

But I don't understand how they manage to get the connection to Postgresql,
their code is too complicated for me

Do they use the C library, libpq ?
Or do they manage the connection in their own code ?

Should I use libpq ?
Or should I manage the connection in my own code ?

In Guile I can manipulate sockets and the semantics are pretty close to the
ones of plain C

So even an example in C would be fine

I'd like to use a Unix socket

I hope this was the right mailing list for this question

If it's not, i apologize

Thanks in advance

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Dmitry Igrishin 2019-01-19 15:16:31 Re: the wire protocol
Previous Message Michael Meskes 2018-12-05 10:52:08 Re: ECPG ---> preproc.y