Search Results
https://dev.mysql.com/doc/c-api/8.4/en/mysql-fetch-fields.html
For metadata-optional connections, this function returns NULL when the resultset_metadata system variable is set to NONE. To check whether a result set has metadata, use the mysql_result_metadata() function. MYSQL_FIELD * ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-get-character-set-info.html
void mysql_get_character_set_info(MYSQL *mysql, MY_CHARSET_INFO *cs) Description This function provides information about the default client character set. The default character set may be changed with the mysql_set_character_set() function.
https://dev.mysql.com/doc/c-api/8.4/en/mysql-get-connect-nonblocking-stage.html
enum connect_stage mysql_get_connect_nonblocking_stage(MYSQL *mysql) Description mysql_get_connect_nonblocking_stage() provides a function to determine which stage of the mysql_real_connect_nonblocking state machine is in currently. This function ...For general information about writing asynchronous C API applications, see Chapter 7, C API Asynchronous ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-library-end.html
void mysql_library_end(void) Description This function finalizes the MySQL client library. For usage information, see Chapter 4, C API Function Reference, and Section 5.4.45, “mysql_library_init()”. Call it when you are done using the library ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-load-plugin.html
For explicit client plugin loading, the mysql_load_plugin() and mysql_load_plugin_v() C API functions use the LIBMYSQL_PLUGIN_DIR value if it exists and the --plugin-dir option was not given. Errors To check for errors, call the mysql_error() or ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-server-init.html
int mysql_server_init(int argc, char **argv, char **groups) Description This function initializes the MySQL client library, which must be done before you call any other MySQL function. Note To avoid memory leaks after the application is done using ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-session-track-get-next.html
int mysql_session_track_get_next(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length) Description This function fetches additional session state-change information received from the server, following that retrieved by ...Following a successful call to mysql_session_track_get_first(), call mysql_session_track_get_next() repeatedly until it returns nonzero to indicate no more information is ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-ssl-set.html
Return Values This function returns false if the operation is successful, else it returns true. bool mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath, const char *cipher) Description Note As of MySQL ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-errno.html
unsigned int mysql_stmt_errno(MYSQL_STMT *stmt) Description For the statement specified by stmt, mysql_stmt_errno() returns the error code for the most recently invoked statement API function that can succeed or fail. If the failed statement API ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-insert-id.html
Use this function after you have executed a prepared INSERT statement on a table which contains an AUTO_INCREMENT field. Return Values Value for AUTO_INCREMENT column which was automatically generated or explicitly set during execution of prepared ... uint64_t mysql_stmt_insert_id(MYSQL_STMT *stmt) Description Returns the value generated for an AUTO_INCREMENT column by the prepared INSERT or UPDATE ...