Search Results
https://dev.mysql.com/doc/c-api/8.4/en/mysql-info.html
const char * mysql_info(MYSQL *mysql) Description Retrieves a string providing information about the most recently executed statement, but only for the statements listed here. String format: Records: 3 Duplicates: 0 Warnings: 0 LOAD DATA String ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-insert-id.html
uint64_t mysql_insert_id(MYSQL *mysql) Description Returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE statement. The return value of mysql_insert_id() is always zero unless explicitly updated under one of the ...Use this function after you have performed an INSERT statement into a table that contains an AUTO_INCREMENT field, or have used INSERT or UPDATE to set a column value with ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-load-plugin-v.html
struct st_mysql_client_plugin * mysql_load_plugin_v(MYSQL *mysql, const char *name, int type, int argc, va_list args) Description This function is equivalent to mysql_load_plugin(), but it accepts a va_list instead of a variable list of arguments.
https://dev.mysql.com/doc/c-api/8.4/en/mysql-more-results.html
bool mysql_more_results(MYSQL *mysql) Description This function is used when you execute multiple statements specified as a single statement string, or when you execute CALL statements, which can return multiple result sets. mysql_more_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, ...Reinitializes session system variables to the values of the corresponding global system variables, including system variables that are set implicitly by statements such as SET ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-rollback.html
Call mysql_close() from the client program to close the connection from the client side. The action of this function is subject to the value of the completion_type system variable. In particular, if the value of completion_type is RELEASE (or 2), ...
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 ...This enables memory managment to be performed to clean up and free resources used by the ...
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-set-local-infile-default.html
void mysql_set_local_infile_default(MYSQL *mysql); Description Sets the LOAD DATA LOCAL callback functions to the defaults used internally by the C client library. The library calls this function automatically if mysql_set_local_infile_handler() ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-set-local-infile-handler.html
void mysql_set_local_infile_handler(MYSQL *mysql, int (*local_infile_init)(void **, const char *, void *), int (*local_infile_read)(void *, char *, unsigned int), void (*local_infile_end)(void *), int (*local_infile_error)(void *, char*, unsigned ...It enables application programs to exert control over local (client-side) data file ...