From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Raimon Fernandez <coder(at)montx(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Implementing Frontend/Backend Protocol TCP/IP |
Date: | 2009-10-27 05:10:21 |
Message-ID: | 1256620221.1709.18.camel@wallace.localnet |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
On Mon, 2009-10-26 at 20:15 -0300, Alvaro Herrera wrote:
> Raimon Fernandez wrote:
> >
> >
> > Hello,
> >
> >
> > I'm trying to implement the front-end protocol with TCP from
> > REALbasic to PostgreSQL.
>
> That sounds the most difficult way to do it. Can't you just embed
> libpq?
+1
Almost all languages support some kind of C bindings or provide a
dlopen-like mechanism to dynamically call C functions from shared
libraries.
RealBasic appears to have fairly dynamic, dlopen-style bindings. I'm
sure you can find more information in the manual, but here's an example
of some syntax:
http://forums.realsoftware.com/viewtopic.php?t=5050
You'll have to do a bit more work to produce bindings for libpq, though,
especially if you have to produce bindings for any data types (C
structures). If all you have to bind is function calls, and you can
handle any libpq-specific structures as opaque void pointers then it
shouldn't be too hard to just bind the function calls you need.
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2009-10-27 05:14:37 | Re: Is there any ways to pass an array as parameter in libpq? |
Previous Message | 纪晓曦 | 2009-10-27 04:55:39 | How does PostgreSQL recognise "deleted" tuples by using xmax ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Raimon Fernandez | 2009-10-27 07:20:21 | Re: Implementing Frontend/Backend Protocol TCP/IP |
Previous Message | John R Pierce | 2009-10-26 23:17:53 | Re: Implementing Frontend/Backend Protocol TCP/IP |