The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
Best way to communicate with database (mysql/pgsql etc) in C++ under Linux/FreeBSD ?
Discuss Best way to communicate with database (mysql/pgsql etc) in C++ under Linux/FreeBSD ? in the C Programming forum on Dev Shed. Best way to communicate with database (mysql/pgsql etc) in C++ under Linux/FreeBSD ? C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 23rd, 2003, 11:51 PM
|
|
Junior Member
|
|
Join Date: May 2003
Location: Sydney , Australia
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Best way to communicate with database (mysql/pgsql etc) in C++ under Linux/FreeBSD ?
Hi ,
I wanted to access Database from C++ in Linux.
I am currently using :
libpqxx of PostgreSQL under c++ (gcc).
but i wanted to use:
unixODBC/iODBC with any database..
but then i have to use some c++ database library like :
DATABASE template library (DTL)
URL
or
libODBC++/FreeODBC++
URL
DTL is too complicated to use and documented poorly !!
and libODBC++ doesn't compile properly
and it's interface also looks complicated and poorly documented..
libpqxx of PostgreSQL works great ! ...
but i am kinda limited to one database platform...
Please advice me , if you know any better solution.
Thanks for your time . 
|

May 24th, 2003, 01:42 PM
|
 |
Big Endian
|
|
Join Date: May 2001
Location: Fly-over country
|
|
This may not be of any interest to you since it is a commercial product, but I've been using it for a couple of years and have found it to be very useful for working with different databases on different hardware.
http://www.sqlapi.com
It supports Oracle, MS SQL, Sybase, DB2, Informix, Interbase/Firebird, Centura SQLBase, MySQL and Postgresql on Windows, Linux and Solaris. For me, it was worth the money but you would have to determine if it fits your needs.
OTL is in the same ballpark as DTL so I don't know if using it would gain you anything. I've never used it, so I can't make a recommendation.
http://otl.sourceforge.net/
|

May 25th, 2003, 02:15 AM
|
|
Junior Member
|
|
Join Date: May 2003
Location: Sydney , Australia
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
thanks !
thanks,
but i am only looking for Open Source solution ..
DTL/OTL works fine .. but it's very complicated to use and very poorly documented ..
i am wondering ,, how big open source programms interact with database..
how PHP , CGIs (those written in c++) achieve this ?
|

May 25th, 2003, 06:33 AM
|
 |
Big Endian
|
|
Join Date: May 2001
Location: Fly-over country
|
|
|
Last edited by dcaillouet : May 25th, 2003 at 06:44 AM.
|

May 26th, 2003, 08:15 AM
|
|
Junior Member
|
|
Join Date: May 2003
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Thanks !
Thanks ! dcaillouet
I am looking in to GNOME-DB now..
(but no success yet !)
maybe this is the solution i am looking for ...
Cheers,
maulik
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|