MySQL Connector/C++ Release Notes
These release notes were created with the assistance of MySQL HeatWave GenAI.
The X DevAPI and X DevAPI for C now support configurable read and write timeouts. These timeouts can be set in milliseconds with the following methods:
For both APIs, with the connection options
read-timeout
and
write-timeout
in the connection string.
For the X DevAPI, with the SessionOption
enumeration constants READ_TIMEOUT
and
WRITE_TIMEOUT
in the
mysqlx::Session
or
mysqlx::SessionSettings
constructor.
For the X DevAPI for C, with the
MYSQLX_OPT_READ_TIMEOUT
and
MYSQLX_OPT_WRITE_TIMEOUT
enumeration
constants or the OPT_READ_TIMEOUT()
and
OPT_WRITE_TIMEOUT()
macros, using the
mysqlx_session_option_set()
function.
The timeouts can only be set at the time of connection. See the MySQL Connector/C++ X DevAPI Reference for details. (WL #16924)