Re: ecpg and C++

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
Thread:
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!

In response to

  • ecpg and C++ at 2005-07-28 21:07:04 from Peter L. Berghold

Browse pgsql-general by date

  From Date Subject
Next Message Vishnu 2005-08-23 09:42:54 How to limit database size
Previous Message Sivakumar K 2005-08-23 07:18:46 Re: libpq.dll - how to check if field is nullable