pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedEmbedded SQL in C
4+ messages / 4 participants
[nested] [flat]
* Embedded SQL in C
@ 1999-09-11 21:24 rodneyr@embratel.com.br
1999-09-13 03:27 ` Re: [INTERFACES] Embedded SQL in C Thomas Lockhart <lockhart@alumni.caltech.edu>
1999-09-13 06:20 ` Re: [INTERFACES] Embedded SQL in C Ivo Simicevic <ivo@ultra.hr>
1999-09-13 08:26 ` Re: [INTERFACES] Embedded SQL in C Michael Meskes <meskes@postgresql.org>
0 siblings, 3 replies; 4+ messages in thread
From: rodneyr@embratel.com.br @ 1999-09-11 21:24 UTC (permalink / raw)
To: pgsql-interfaces@hub.org
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?
Thanks in advance.
Rodney.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [INTERFACES] Embedded SQL in C
1999-09-11 21:24 Embedded SQL in C rodneyr@embratel.com.br
@ 1999-09-13 03:27 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Lockhart @ 1999-09-13 03:27 UTC (permalink / raw)
To: rodneyr@embratel.com.br; +Cc: pgsql-interfaces@hub.org
> 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@alumni.caltech.edu
South Pasadena, California
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [INTERFACES] Embedded SQL in C
1999-09-11 21:24 Embedded SQL in C rodneyr@embratel.com.br
@ 1999-09-13 06:20 ` Ivo Simicevic <ivo@ultra.hr>
2 siblings, 0 replies; 4+ messages in thread
From: Ivo Simicevic @ 1999-09-13 06:20 UTC (permalink / raw)
To: rodneyr@embratel.com.br; +Cc: pgsql-interfaces@hub.org
On Sat, Sep 11, 1999 at 06:24:22PM -0300, rodneyr@embratel.com.br wrote:
> 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?
>
> Thanks in advance.
>
> Rodney.
>
If it could be of any help check http://www.ultra.hr/gpl/ecpg
Ivo.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [INTERFACES] Embedded SQL in C
1999-09-11 21:24 Embedded SQL in C rodneyr@embratel.com.br
@ 1999-09-13 08:26 ` Michael Meskes <meskes@postgresql.org>
2 siblings, 0 replies; 4+ messages in thread
From: Michael Meskes @ 1999-09-13 08:26 UTC (permalink / raw)
To: rodneyr@embratel.com.br; +Cc: pgsql-interfaces@hub.org
On Sat, Sep 11, 1999 at 06:24:22PM -0300, rodneyr@embratel.com.br wrote:
> 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?
There is some documentation in sgml in the source tree. Other than that I
can only offer the demo sources.
Michael
--
Michael Meskes | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire!
Tel.: (+49) 2431/72651 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De | Use PostgreSQL!
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~1999-09-13 08:26 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-09-11 21:24 Embedded SQL in C rodneyr@embratel.com.br
1999-09-13 03:27 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
1999-09-13 06:20 ` Ivo Simicevic <ivo@ultra.hr>
1999-09-13 08:26 ` Michael Meskes <meskes@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox