Documentation Home
MySQL Connector/C++ Release Notes
Related Documentation Download these Release Notes
PDF (US Ltr) - 396.2Kb
PDF (A4) - 397.9Kb


MySQL Connector/C++ Release Notes  /  Changes in MySQL Connector/C++ 2.0  /  Changes in MySQL Connector/C++ 2.0.3 (2016-10-19, Development Milestone)

Changes in MySQL Connector/C++ 2.0.3 (2016-10-19, Development Milestone)

MySQL Connector/C++ 2.0.3 is the next development milestone of the MySQL Connector/C++ 2.0 series, and the first public release. Apart from covering more X DevAPI features, it adds a new, plain C API, called X DevAPI for C, that offers functionality similar to X DevAPI to applications written in plain C. Thus, not only can MySQL Connector/C++ be used to write C++ applications, as before. Now, using the X DevAPI for C, MySQL Connector/C++ can be used to write plain C applications to access MySQL Database implementing a document store as well as execute traditional plain SQL statements. For more information about X DevAPI for C, refer to the documentation at https://dev.mysql.com/doc/dev/connector-cpp/xapi_ref.html.

Note

The X DevAPI requires at least MySQL Server version 5.7.12 or higher with the X Plugin enabled. For general documentation about how to get started using MySQL as a document store, see Using MySQL as a Document Store.

X DevAPI Notes

  • New X DevAPI features added in this Connector/C++ release:

    • Methods for starting and controlling transactions

    • Using an X DevAPI URI or connection string to specify new session parameters

    • Capability of binding a session to the default shard and execute SQL statements there (using XSession.bindToDefaultShard())

    • Methods for counting elements in a table or collection

    • Access to multiple result sets if present in a query result

    • Methods to count items in a result set and fetch a complete result set at once (using fetchAll()), instead of accessing items one by one (using fetchOne())

    • Access to warnings reported when processing a statement (getWarnings())

    • Access to information about affected rows, generated auto-increment values, and identifiers of documents added to a collection