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-timeoutandwrite-timeoutin the connection string.For the X DevAPI, with the
SessionOptionenumeration constantsREAD_TIMEOUTandWRITE_TIMEOUTin themysqlx::Sessionormysqlx::SessionSettingsconstructor.For the X DevAPI for C, with the
MYSQLX_OPT_READ_TIMEOUTandMYSQLX_OPT_WRITE_TIMEOUTenumeration constants or theOPT_READ_TIMEOUT()andOPT_WRITE_TIMEOUT()macros, using themysqlx_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)