Search Results
https://dev.mysql.com/doc/c-api/8.4/en/mysql-reset-connection.html
int mysql_reset_connection(MYSQL *mysql) Description Resets the connection to clear the session state. mysql_reset_connection() has effects similar to mysql_change_user() or an auto-reconnect except that the connection is not closed and reopened, ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-result-metadata.html
enum enum_resultset_metadata mysql_result_metadata(MYSQL_RES *result) Description mysql_result_metadata() returns a value that indicates whether a result set has metadata. It can be useful for metadata-optional connections when the client does not ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-server-end.html
void mysql_server_end(void) Description This function finalizes the MySQL client library, which should be done when you are done using the library. Note To avoid memory leaks after the application is done using the library (for example, after ...
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 ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-attr-get.html
bool mysql_stmt_attr_get(MYSQL_STMT *stmt, enum enum_stmt_attr_type option, void *arg) Description Can be used to get the current value for a statement attribute. The option argument is the option that you want to get; the arg should point to a ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-bind-result.html
bool mysql_stmt_bind_result(MYSQL_STMT *stmt, MYSQL_BIND *bind) Description mysql_stmt_bind_result() is used to associate (that is, bind) output columns in the result set to data buffers and length buffers. When mysql_stmt_fetch() is called to ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-close.html
mysql_stmt_close() also deallocates the statement handler pointed to by stmt, which at that point becomes invalid and should no longer be used. For a failed mysql_stmt_close() call, do not call mysql_stmt_error(), or mysql_stmt_errno(), or ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-init.html
MYSQL_STMT * mysql_stmt_init(MYSQL *mysql) Description Creates and returns a MYSQL_STMT handler. The handler should be freed with mysql_stmt_close(), at which point the handler becomes invalid and should no longer be used. See also Section 6.2, ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-insert-id.html
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 statement. Use this function after you have executed a prepared INSERT statement on a table which ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-param-count.html
unsigned long mysql_stmt_param_count(MYSQL_STMT *stmt) Description Returns the number of parameter markers present in the prepared statement. Return Values An unsigned long integer representing the number of parameters in a statement.