Re: ecpg and C++

Lists: pgsql-general
From: "Peter L(dot) Berghold" <Peter(at)berghold(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: ecpg and C++
Date: 2005-07-28 21:07:04
Message-ID: 42E948F8.8070301@Berghold.Net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Folks,

If I wanted to embed SQL code in a C++ file is there a way to use ecpg
to generate the proper C++ files?

- --
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold Peter(at)Berghold(dot)Net
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawg Yahoo IM: blue_cowdawg ICQ: 11455958
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC6Uj4UM9/01RIhaARAhQpAJ9he3KkW7MvbR3y/Og1fsiVA6tIBgCdFFUk
oUY57FLKV4SCrMT65NkawzY=
=Aohq
-----END PGP SIGNATURE-----


From: Michael Meskes <meskes(at)postgresql(dot)org>
To: "Peter L(dot) Berghold" <Peter(at)berghold(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ecpg and C++
Date: 2005-08-23 07:48:47
Message-ID: 20050823074847.GC8062@1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thu, Jul 28, 2005 at 05:07:04PM -0400, Peter L. Berghold wrote:
> If I wanted to embed SQL code in a C++ file is there a way to use ecpg
> to generate the proper C++ files?

Sorry for the late answer, but I have been on vacation and some business
trips, so I'm just catching up on my mail backlog.

What exactly do you want to get and do not? ecpg is supposed to be a C
precompiler, but it should at least accept most C++ stuff as well. That
of course means that it is output as read, so remains C++.

The internal code produced remains C of course unless you implement a
different output engine.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!