Re: [INTERFACES] Embedded SQL in C

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: rodneyr(at)embratel(dot)com(dot)br
Cc: pgsql-interfaces(at)hub(dot)org
Subject: Re: [INTERFACES] Embedded SQL in C
Date: 1999-09-13 03:27:32
Message-ID: 37DC6F24.D50422A9@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> What is the best way to work with embedded SQL in C for PostgreSQL?
> I've tried the "ecpg" but I wasn't able to develop a simple program with the
> documentation in the "PostgreSQL Programmer's Guide". Where can I find a better
> documentation for beginners and, what is more important, examples?

As for most of our work, the documentation lags the implementation.
afaik there is no other specific documentation for ecpg. I would
suggest two paths to take:
1) Get a generic book on SQL which covers embedded C. ecpg tries to
follow published standards and common conventions.
2) Look at embedded code examples in the Postgres source tree. There
are several in src/interfaces/ecpg/test/

And, when you understand how to do it, consider writing a "HowTo" doc!
I'd be very happy to include it in the Programmer's Guide, and will
help to edit and format it. The content (or lack thereof, as you have
discovered) is the most important thing.

Good luck.

- Thomas

--
Thomas Lockhart lockhart(at)alumni(dot)caltech(dot)edu
South Pasadena, California

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ivo Simicevic 1999-09-13 06:20:59 Re: [INTERFACES] Embedded SQL in C
Previous Message Nathan Fain 1999-09-12 22:17:59 Problem with "'"