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.


|