pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to connect via C++?
3+ messages / 3 participants
[nested] [flat]

* How to connect via C++?
@ 2001-05-14 07:10  Maxim Maletsky <maxim@japaninc.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Maxim Maletsky @ 2001-05-14 07:10 UTC (permalink / raw)
  To: pgsql-interfaces

Hello,
 
I typically write applications in PHP, but know also a bit of C++.
There's a task I want to do with C++, it also includes reading from and
writing to a PostgreSQL database. 
 
How do I do that on C++?
 
What libraries are?
Compilers?
...where to start?
 
I am on FreeBSD.
 

Sincerely, 


 Maxim Maletsky
  Web Developer 

 Digital Media,
 Japan Inc Communications 
  www.japaninc.com <http://www.japaninc.com/;  
  maxim@japaninc.com <mailto:maxim@japaninc.com>  
  TEL: 03-3499-2175 x 1271 
  FAX: 03-3499-3109 

 

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to connect via C++?
@ 2001-05-15 11:18  J. T. Vermeulen <jtv@cistron-office.nl>
  parent: Maxim Maletsky <maxim@japaninc.com>
  0 siblings, 0 replies; 3+ messages in thread

From: J. T. Vermeulen @ 2001-05-15 11:18 UTC (permalink / raw)
  To: Maxim Maletsky <maxim@japaninc.com>; +Cc: pgsql-interfaces

On Mon, 14 May 2001, Maxim Maletsky wrote:

> There's a task I want to do with C++, it also includes reading from and
> writing to a PostgreSQL database. 
>  
> How do I do that on C++?
>  
> What libraries are?

Use either libpq++ (C++ library), or if you're into that kind of thing, use
the C library libpq directly.  In the latter case of course, remember to 
include the headers in extern "C" blocks as usual.  Either way you'll probably
have to look through the libpq documentation.


> Compilers?

Whatever works.  Try g++.


Jeroen




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: How to connect via C++?
@ 2001-05-15 11:53  Michael Ansley (UK) <Michael.Ansley@intec-telecom-systems.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Ansley (UK) @ 2001-05-15 11:53 UTC (permalink / raw)
  To: 'J. T. Vermeulen' <jtv@cistron-office.nl>; Maxim Maletsky <maxim@japaninc.com>; +Cc: pgsql-interfaces

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

Or, of course, you could use embedded SQL (using the ecpg compiler). 
This is quite convenient if you are familiar with embedded SQL.

Cheers...


MikeA



>> -----Original Message-----
>> From: J. T. Vermeulen [mailto:jtv@cistron-office.nl]
>> Sent: 15 May 2001 12:18
>> To: Maxim Maletsky
>> Cc: pgsql-interfaces@postgresql.org
>> Subject: Re: [INTERFACES] How to connect via C++?
>> 
>> 
>> On Mon, 14 May 2001, Maxim Maletsky wrote:
>> 
>> > There's a task I want to do with C++, it also includes 
>> reading from and
>> > writing to a PostgreSQL database. 
>> >  
>> > How do I do that on C++?
>> >  
>> > What libraries are?
>> 
>> Use either libpq++ (C++ library), or if you're into that 
>> kind of thing, use
>> the C library libpq directly.  In the latter case of course, 
>> remember to 
>> include the headers in extern "C" blocks as usual.  Either 
>> way you'll probably
>> have to look through the libpq documentation.
>> 
>> 
>> > Compilers?
>> 
>> Whatever works.  Try g++.
>> 
>> 
>> Jeroen
>> 
>> 
>> ---------------------------(end of 
>> broadcast)---------------------------
>> TIP 4: Don't 'kill -9' the postmaster
>> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com;

iQA/AwUBOwEYinympNV/C086EQJYcwCfe2HOTlXTahQ0jtUrab24/fg9DRcAoJCv
UjIgqWyz3qdXpQAUkQ55w7EQ
=xJW0
-----END PGP SIGNATURE-----

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-05-15 11:53 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-14 07:10 How to connect via C++? Maxim Maletsky <maxim@japaninc.com>
2001-05-15 11:18 ` J. T. Vermeulen <jtv@cistron-office.nl>
2001-05-15 11:53 RE: How to connect via C++? Michael Ansley (UK) <Michael.Ansley@intec-telecom-systems.com>

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