Re: the wire protocol
Tony Locke <[email protected]> Tue, 22 Jan 2019 08:06:41 +0000
| Newsgroups | gmane.comp.db.postgresql.interfaces |
|---|---|
| Message-ID | <CAPpF0yMbHKme1KSqyTF8vA8NQBDpi9MPJ-NjtHAGSz6xm1FJPg@mail.gmail.com> |
--000000000000e4409b05800775b6 Content-Type: text/plain; charset="UTF-8" Hi, pg8000 is a pure-python implementation of the wire protocol: https://github.com/tlocke/pg8000 Might be of help. -Tony On Tue, 22 Jan 2019, 03:25 John DeSoi <[email protected] wrote: > > > On Jan 19, 2019, at 7:56 AM, Catonano <[email protected]> wrote: > > > > 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 > > > Here is a Common Lisp library that uses sockets and the wire protocol to > work with Postgres. > > https://github.com/marijnh/Postmodern > > Should be very close to what you want to do with Guile/Scheme. > > John DeSoi, Ph.D. > > > --000000000000e4409b05800775b6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div dir=3D"auto">Hi, pg8000 is a pure-python implementat= ion of the wire protocol:</div><div dir=3D"auto"><br></div><div><a href=3D"= https://github.com/tlocke/pg8000">https://github.com/tlocke/pg8000</a></div= ><div dir=3D"auto"><br></div><div dir=3D"auto">Might be of help.</div><div = dir=3D"auto"><br></div><div dir=3D"auto">-Tony<br><br><div class=3D"gmail_q= uote" dir=3D"auto"><div dir=3D"ltr">On Tue, 22 Jan 2019, 03:25 John DeSoi &= lt;<a href=3D"mailto:[email protected]">[email protected]</a> wrote:<br></div= ><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1= px #ccc solid;padding-left:1ex"><br> > On Jan 19, 2019, at 7:56 AM, Catonano <<a href=3D"mailto:catonano@g= mail.com" target=3D"_blank" rel=3D"noreferrer">[email protected]</a>> w= rote:<br> > <br> > there's this Python project using the so called wire protocol (as = far as I understand)<br> > <br> > <a href=3D"https://github.com/MagicStack/asyncpg" rel=3D"noreferrer no= referrer" target=3D"_blank">https://github.com/MagicStack/asyncpg</a><br> > <br> > I'm caressing the idea to create a GNU Guile based project that do= es the same thing<br> > <br> > But I don't understand how they manage to get the connection to Po= stgresql, their code is too complicated for me<br> <br> <br> Here is a Common Lisp library that uses sockets and the wire protocol to wo= rk with Postgres.<br> <br> <a href=3D"https://github.com/marijnh/Postmodern" rel=3D"noreferrer norefer= rer" target=3D"_blank">https://github.com/marijnh/Postmodern</a><br> <br> Should be very close to what you want to do with Guile/Scheme.<br> <br> John DeSoi, Ph.D.<br> <br> <br> </blockquote></div></div></div> --000000000000e4409b05800775b6--