I'm going to be developing a C++ application that uses a MySQL database.
I've written similar apps in Java using JDBC, as well as the Spring Framework.
Are there equivalent libraries for C++? What have you had the most success with?
I'm going to be developing a C++ application that uses a MySQL database.
I've written similar apps in Java using JDBC, as well as the Spring Framework.
Are there equivalent libraries for C++? What have you had the most success with?
There's the MySQL Connector C++ project from MySQL. It's still in early alpha releases, but it does mimic the JDBC 4.0 model.
It looks like writing a data access layer using the MySQL C API is going to be the best bet.
MySQL Connector/C++ is a C++ implementation of JDBC 4.0
The reference customers who use MySQL Connector/C++ are:
- OpenOffice
- MySQL Workbench
Learn more: http://forums.mysql.com/read.php?167,221298
I would use the MySQL C API, it is the simplest solution. You can easily write a class to wrap up the C api for your own uses.