Talk About Network

Google





Programming > C - C++ Learning > Re: Storing Pro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 4082 of 4400
Post > Topic >>

Re: Storing Program Data

by Jerry Coffin <jcoffin@[EMAIL PROTECTED] > Mar 26, 2008 at 08:10 AM

In article <80db3cad-cc93-499d-94a8-100fe204c2a4
@[EMAIL PROTECTED]
>, james@[EMAIL PROTECTED]
 says...
> I've been trying to find a good way to store program data (i.e. a
> database) but I can't find very good information of how to do tht
> that isn't platform specific using C++ other than basiclly creating
> my own database system on the file system(i.e. flat files).  I
> guess I'm asking if there are any good platform independant
> library's for this, or commonly used methodologies. 

One that hasn't been mentioned yet is Berkeley DB.

IMO, the suggestion of MySQL is a rather poor one -- rather than an 
embeddable library, it's a separate SQL server that you connect to. From 
your description, that sounds like overkill. If you decide that's what 
you really want, I'd suggest PostgresSQL instead.

If you're going to use either of those (or another separate SQL server, 
such as Oracle), your next step is to find a library with a C++ binding 
with which to connect to the database. One I'd suggest for this 
situation is OTL, available at:

http://otl.sourceforge.net/home.htm

This integrates quite nicely with the standard library, and sup****ts a 
fair number of database back-ends, including Oracle (its original 
target), MySQL, and PostgresSQL. This keeps your code relatively 
independent of the server you connect to, so it's generally pretty easy 
to switch from one to another as you see fit.

-- 
    Later,
    Jerry.

The universe is a figment of its own imagination.
 




 7 Posts in Topic:
Storing Program Data
james@[EMAIL PROTECTED]   2008-03-25 17:41:06 
Re: Storing Program Data
George Huber <kharmon@  2008-03-26 00:48:38 
Re: Storing Program Data
"Jim Langston"   2008-03-25 23:46:52 
Re: Storing Program Data
admin@[EMAIL PROTECTED]   2008-03-26 06:12:48 
Re: Storing Program Data
admin@[EMAIL PROTECTED]   2008-03-26 06:16:06 
Re: Storing Program Data
Richard Heathfield <rj  2008-03-26 13:23:14 
Re: Storing Program Data
Jerry Coffin <jcoffin@  2008-03-26 08:10:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 10:54:40 PST 2009.