How to connect via C++?

Поиск
Список
Период
Сортировка
Искать

How to connect via C++?

От:
Maxim Maletsky <maxim@japaninc.com>
Дата:
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
  maxim@japaninc.com
  TEL: 03-3499-2175 x 1271
  FAX: 03-3499-3109

 

Re: How to connect via C++?

От:
"J. T. Vermeulen" <jtv@cistron-office.nl>
Дата:
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


RE: How to connect via C++?

От:
"Michael Ansley (UK)" <Michael.Ansley@intec-telecom-systems.com>
Дата:

-----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-----

_________________________________________________________________________
This e-mail and any attachments are confidential and may also be privileged and/or copyright
material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an
intended or authorised recipient of this e-mail or have received it in error, please delete
it immediately and notify the sender by e-mail. In such a case, reading, reproducing,
printing or further dissemination of this e-mail is strictly prohibited and may be unlawful.
Intec Telecom Systems PLC. does not represent or warrant that an attachment hereto is free
from computer viruses or other defects. The opinions expressed in this e-mail and any
attachments may be those of the author and are not necessarily those of Intec Telecom
Systems PLC.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
__________________________________________________________________________

FAQ