I'm looking for options for abstracting database server details away from my application (in c++), I'd like to write my code to be independent of the actual database backend. I know MySQL has a nice library, but I don't want to be tied to a single database implementation. Are there good options for this?
+1
A:
Qt provides a database abstraction layer. See: http://doc.trolltech.com/4.6/qsqldatabase.html.
Kyle Lutz
2010-01-21 04:05:23
+1
A:
libodbc++ provides a pretty good API. Also the big guys Qt (see Kyle Lutz' answer) & wxWidgets have db abstraction layers, so it may be a good idea to use them if you plan to use/you're already using any other parts of those frameworks.
Eugen Constantin Dinca
2010-01-21 07:01:54