The MySQL Connector/C++ Connector project has successfully reached its first major milestone by releasing its Alpha version.
The Connector provides a C++ implementation modeled after JDBC. This allows developers who have worked with JDBC to quickly take advantage of this Connector minimizing the learning curve.
The current release provides support for many of the methods found in the following JDBC interfaces:
- java.sql.Connection
- java.sql.DatabaseMetaData
- java.sql.Driver
- java.sql.PreparedStatement
- java.sql.ResultSet
- java.sql.ResultsetMetaData
- java.sql.Savepoint
- java.sql.Statement
Examples of using MySQL Connector/C++
Here is an example which connects to a MySQL Server, creates a table and then inserts a row into the table
sql::mysql::MySQL_Driver *driver; …[Read more]