the wire protocol

Catonano <[email protected]> Sat, 19 Jan 2019 14:56:09 +0100
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <CAJ98PDxahpFQA_3kErKHwtYmZY36GfELAycts4GZ6BLkzhFb5Q@mail.gmail.com>
--0000000000008bc52d057fcffeab
Content-Type: text/plain; charset="UTF-8"

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

--0000000000008bc52d057fcffeab
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>Hello,</div><div><br></div><div>ther=
e&#39;s this Python project using the so called wire protocol (as far as I =
understand)</div><div><br></div><div><a href=3D"https://github.com/MagicSta=
ck/asyncpg">https://github.com/MagicStack/asyncpg</a></div><div><br></div><=
div>I&#39;m caressing the idea to create a GNU Guile based project that doe=
s the same thing</div><div><br></div><div>But I don&#39;t understand how th=
ey manage to get the connection to Postgresql, their code is too complicate=
d for me<br></div><div><br></div><div>Do they use the C library, libpq ?</d=
iv><div>Or do they manage the connection in their own code ?<br></div><div>=
<br></div><div>Should I use libpq ?</div><div>Or should I manage the connec=
tion in my own code ?</div><div><br></div><div>In Guile I can manipulate so=
ckets and the semantics are pretty close to the ones of plain C</div><div><=
br></div><div>So even an example in C would be fine<br></div><div><br></div=
><div>I&#39;d like to use a Unix socket</div><div><br></div><div>I hope thi=
s was the right mailing list for this question</div><div><br></div><div>If =
it&#39;s not, i apologize</div><div><br></div><div>Thanks in advance<br></d=
iv><div><br></div></div></div>

--0000000000008bc52d057fcffeab--