This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
More...
|
int STDCALL | mysql_server_init (int argc, char **argv, char **groups) |
|
void STDCALL | mysql_server_end (void) |
|
bool STDCALL | mysql_thread_init (void) |
|
void STDCALL | mysql_thread_end (void) |
|
uint64_t STDCALL | mysql_num_rows (MYSQL_RES *res) |
|
unsigned int STDCALL | mysql_num_fields (MYSQL_RES *res) |
|
bool STDCALL | mysql_eof (MYSQL_RES *res) |
|
MYSQL_FIELD *STDCALL | mysql_fetch_field_direct (MYSQL_RES *res, unsigned int fieldnr) |
|
MYSQL_FIELD *STDCALL | mysql_fetch_fields (MYSQL_RES *res) |
|
MYSQL_ROW_OFFSET STDCALL | mysql_row_tell (MYSQL_RES *res) |
|
MYSQL_FIELD_OFFSET STDCALL | mysql_field_tell (MYSQL_RES *res) |
|
enum enum_resultset_metadata STDCALL | mysql_result_metadata (MYSQL_RES *result) |
|
unsigned int STDCALL | mysql_field_count (MYSQL *mysql) |
|
uint64_t STDCALL | mysql_affected_rows (MYSQL *mysql) |
|
uint64_t STDCALL | mysql_insert_id (MYSQL *mysql) |
|
unsigned int STDCALL | mysql_errno (MYSQL *mysql) |
|
const char *STDCALL | mysql_error (MYSQL *mysql) |
|
const char *STDCALL | mysql_sqlstate (MYSQL *mysql) |
|
unsigned int STDCALL | mysql_warning_count (MYSQL *mysql) |
|
const char *STDCALL | mysql_info (MYSQL *mysql) |
|
unsigned long STDCALL | mysql_thread_id (MYSQL *mysql) |
|
const char *STDCALL | mysql_character_set_name (MYSQL *mysql) |
|
int STDCALL | mysql_set_character_set (MYSQL *mysql, const char *csname) |
|
MYSQL *STDCALL | mysql_init (MYSQL *mysql) |
|
bool STDCALL | mysql_ssl_set (MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath, const char *cipher) |
|
const char *STDCALL | mysql_get_ssl_cipher (MYSQL *mysql) |
|
bool STDCALL | mysql_get_ssl_session_reused (MYSQL *mysql) |
| Check if the current ssl session is reused. More...
|
|
void *STDCALL | mysql_get_ssl_session_data (MYSQL *mysql, unsigned int n_ticket, unsigned int *out_len) |
| Get the current SSL session serialization. More...
|
|
bool STDCALL | mysql_free_ssl_session_data (MYSQL *mysql, void *data) |
| Free a saved SSL session serialization. More...
|
|
bool STDCALL | mysql_change_user (MYSQL *mysql, const char *user, const char *passwd, const char *db) |
|
MYSQL *STDCALL | mysql_real_connect (MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, unsigned int port, const char *unix_socket, unsigned long clientflag) |
|
int STDCALL | mysql_select_db (MYSQL *mysql, const char *db) |
|
int STDCALL | mysql_query (MYSQL *mysql, const char *q) |
|
int STDCALL | mysql_send_query (MYSQL *mysql, const char *q, unsigned long length) |
|
int STDCALL | mysql_real_query (MYSQL *mysql, const char *q, unsigned long length) |
|
MYSQL_RES *STDCALL | mysql_store_result (MYSQL *mysql) |
|
MYSQL_RES *STDCALL | mysql_use_result (MYSQL *mysql) |
|
enum net_async_status STDCALL | mysql_real_connect_nonblocking (MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, unsigned int port, const char *unix_socket, unsigned long clientflag) |
|
enum net_async_status STDCALL | mysql_send_query_nonblocking (MYSQL *mysql, const char *query, unsigned long length) |
|
enum net_async_status STDCALL | mysql_real_query_nonblocking (MYSQL *mysql, const char *query, unsigned long length) |
|
enum net_async_status STDCALL | mysql_store_result_nonblocking (MYSQL *mysql, MYSQL_RES **result) |
| This API reads all result set sent by server in an asynchronous way. More...
|
|
enum net_async_status STDCALL | mysql_next_result_nonblocking (MYSQL *mysql) |
|
enum net_async_status STDCALL | mysql_select_db_nonblocking (MYSQL *mysql, const char *db, bool *error) |
|
void STDCALL | mysql_get_character_set_info (MYSQL *mysql, MY_CHARSET_INFO *charset) |
|
int STDCALL | mysql_session_track_get_first (MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length) |
| Get the first state change information received from the server. More...
|
|
int STDCALL | mysql_session_track_get_next (MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length) |
| Get the subsequent state change information received from the server. More...
|
|
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 int), void *) |
|
void | mysql_set_local_infile_default (MYSQL *mysql) |
|
int STDCALL | mysql_shutdown (MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level) |
|
int STDCALL | mysql_dump_debug_info (MYSQL *mysql) |
|
int STDCALL | mysql_refresh (MYSQL *mysql, unsigned int refresh_options) |
|
int STDCALL | mysql_kill (MYSQL *mysql, unsigned long pid) |
|
int STDCALL | mysql_set_server_option (MYSQL *mysql, enum enum_mysql_set_option option) |
|
int STDCALL | mysql_ping (MYSQL *mysql) |
|
const char *STDCALL | mysql_stat (MYSQL *mysql) |
|
const char *STDCALL | mysql_get_server_info (MYSQL *mysql) |
|
const char *STDCALL | mysql_get_client_info (void) |
|
unsigned long STDCALL | mysql_get_client_version (void) |
|
const char *STDCALL | mysql_get_host_info (MYSQL *mysql) |
|
unsigned long STDCALL | mysql_get_server_version (MYSQL *mysql) |
|
unsigned int STDCALL | mysql_get_proto_info (MYSQL *mysql) |
|
MYSQL_RES *STDCALL | mysql_list_dbs (MYSQL *mysql, const char *wild) |
|
MYSQL_RES *STDCALL | mysql_list_tables (MYSQL *mysql, const char *wild) |
|
MYSQL_RES *STDCALL | mysql_list_processes (MYSQL *mysql) |
|
int STDCALL | mysql_options (MYSQL *mysql, enum mysql_option option, const void *arg) |
|
int STDCALL | mysql_options4 (MYSQL *mysql, enum mysql_option option, const void *arg1, const void *arg2) |
|
int STDCALL | mysql_get_option (MYSQL *mysql, enum mysql_option option, const void *arg) |
| Return the current values for the options settable through mysql_options() More...
|
|
void STDCALL | mysql_free_result (MYSQL_RES *result) |
|
enum net_async_status STDCALL | mysql_free_result_nonblocking (MYSQL_RES *result) |
| Frees the memory allocated for a result, set by APIs which would have returned rows. More...
|
|
void STDCALL | mysql_data_seek (MYSQL_RES *result, uint64_t offset) |
|
MYSQL_ROW_OFFSET STDCALL | mysql_row_seek (MYSQL_RES *result, MYSQL_ROW_OFFSET offset) |
|
MYSQL_FIELD_OFFSET STDCALL | mysql_field_seek (MYSQL_RES *result, MYSQL_FIELD_OFFSET offset) |
|
MYSQL_ROW STDCALL | mysql_fetch_row (MYSQL_RES *result) |
|
enum net_async_status STDCALL | mysql_fetch_row_nonblocking (MYSQL_RES *res, MYSQL_ROW *row) |
| Reads next row of a result set in an asynchronous way. More...
|
|
unsigned long *STDCALL | mysql_fetch_lengths (MYSQL_RES *result) |
|
MYSQL_FIELD *STDCALL | mysql_fetch_field (MYSQL_RES *result) |
|
MYSQL_RES *STDCALL | mysql_list_fields (MYSQL *mysql, const char *table, const char *wild) |
|
unsigned long STDCALL | mysql_escape_string (char *to, const char *from, unsigned long from_length) |
|
unsigned long STDCALL | mysql_hex_string (char *to, const char *from, unsigned long from_length) |
|
unsigned long STDCALL | mysql_real_escape_string (MYSQL *mysql, char *to, const char *from, unsigned long length) |
|
unsigned long STDCALL | mysql_real_escape_string_quote (MYSQL *mysql, char *to, const char *from, unsigned long length, char quote) |
|
void STDCALL | mysql_debug (const char *debug) |
|
void STDCALL | myodbc_remove_escape (MYSQL *mysql, char *name) |
|
unsigned int STDCALL | mysql_thread_safe (void) |
|
bool STDCALL | mysql_read_query_result (MYSQL *mysql) |
|
int STDCALL | mysql_reset_connection (MYSQL *mysql) |
|
enum net_async_status STDCALL | mysql_reset_connection_nonblocking (MYSQL *mysql) |
|
int STDCALL | mysql_binlog_open (MYSQL *mysql, MYSQL_RPL *rpl) |
| Open a new replication stream. More...
|
|
int STDCALL | mysql_binlog_fetch (MYSQL *mysql, MYSQL_RPL *rpl) |
| Fetch one event from the server. More...
|
|
void STDCALL | mysql_binlog_close (MYSQL *mysql, MYSQL_RPL *rpl) |
| Close replication stream. More...
|
|
bool STDCALL | mysql_bind_param (MYSQL *mysql, unsigned n_params, MYSQL_BIND *binds, const char **names) |
|
MYSQL_STMT *STDCALL | mysql_stmt_init (MYSQL *mysql) |
|
int STDCALL | mysql_stmt_prepare (MYSQL_STMT *stmt, const char *query, unsigned long length) |
|
int STDCALL | mysql_stmt_execute (MYSQL_STMT *stmt) |
|
int STDCALL | mysql_stmt_fetch (MYSQL_STMT *stmt) |
|
int STDCALL | mysql_stmt_fetch_column (MYSQL_STMT *stmt, MYSQL_BIND *bind_arg, unsigned int column, unsigned long offset) |
|
int STDCALL | mysql_stmt_store_result (MYSQL_STMT *stmt) |
|
unsigned long STDCALL | mysql_stmt_param_count (MYSQL_STMT *stmt) |
|
bool STDCALL | mysql_stmt_attr_set (MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, const void *attr) |
|
bool STDCALL | mysql_stmt_attr_get (MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, void *attr) |
|
bool STDCALL | mysql_stmt_bind_param (MYSQL_STMT *stmt, MYSQL_BIND *bnd) |
|
bool STDCALL | mysql_stmt_bind_named_param (MYSQL_STMT *stmt, MYSQL_BIND *binds, unsigned n_params, const char **names) |
|
bool STDCALL | mysql_stmt_bind_result (MYSQL_STMT *stmt, MYSQL_BIND *bnd) |
|
bool STDCALL | mysql_stmt_close (MYSQL_STMT *stmt) |
|
bool STDCALL | mysql_stmt_reset (MYSQL_STMT *stmt) |
|
bool STDCALL | mysql_stmt_free_result (MYSQL_STMT *stmt) |
|
bool STDCALL | mysql_stmt_send_long_data (MYSQL_STMT *stmt, unsigned int param_number, const char *data, unsigned long length) |
|
MYSQL_RES *STDCALL | mysql_stmt_result_metadata (MYSQL_STMT *stmt) |
|
MYSQL_RES *STDCALL | mysql_stmt_param_metadata (MYSQL_STMT *stmt) |
|
unsigned int STDCALL | mysql_stmt_errno (MYSQL_STMT *stmt) |
|
const char *STDCALL | mysql_stmt_error (MYSQL_STMT *stmt) |
|
const char *STDCALL | mysql_stmt_sqlstate (MYSQL_STMT *stmt) |
|
MYSQL_ROW_OFFSET STDCALL | mysql_stmt_row_seek (MYSQL_STMT *stmt, MYSQL_ROW_OFFSET offset) |
|
MYSQL_ROW_OFFSET STDCALL | mysql_stmt_row_tell (MYSQL_STMT *stmt) |
|
void STDCALL | mysql_stmt_data_seek (MYSQL_STMT *stmt, uint64_t offset) |
|
uint64_t STDCALL | mysql_stmt_num_rows (MYSQL_STMT *stmt) |
|
uint64_t STDCALL | mysql_stmt_affected_rows (MYSQL_STMT *stmt) |
|
uint64_t STDCALL | mysql_stmt_insert_id (MYSQL_STMT *stmt) |
|
unsigned int STDCALL | mysql_stmt_field_count (MYSQL_STMT *stmt) |
|
bool STDCALL | mysql_commit (MYSQL *mysql) |
|
bool STDCALL | mysql_rollback (MYSQL *mysql) |
|
bool STDCALL | mysql_autocommit (MYSQL *mysql, bool auto_mode) |
|
bool STDCALL | mysql_more_results (MYSQL *mysql) |
|
int STDCALL | mysql_next_result (MYSQL *mysql) |
|
int STDCALL | mysql_stmt_next_result (MYSQL_STMT *stmt) |
|
void STDCALL | mysql_close (MYSQL *sock) |
|
void STDCALL | mysql_reset_server_public_key (void) |
|
MYSQL *STDCALL | mysql_real_connect_dns_srv (MYSQL *mysql, const char *dns_srv_name, const char *user, const char *passwd, const char *db, unsigned long client_flag) |
| Connect to a server using a DNS SRV name. More...
|
|
enum connect_stage STDCALL | mysql_get_connect_nonblocking_stage (MYSQL *mysql) |
|
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
The ABI should never be changed in a released product of MySQL, thus you need to take great care when changing the file. In case the file is changed so the ABI is broken, you must also update the SHARED_LIB_MAJOR_VERSION in cmake/mysql_version.cmake
Return the current values for the options settable through mysql_options()
Returns the current values for all of the connection options. Callers should not manipulate the returned data ! Data are valid at the time of returning them until the next C API CALL arg should always be a pointer to a variable of the appropriate type. type of variable, based on the parameter:
uint MYSQL_OPT_CONNECT_TIMEOUT, MYSQL_OPT_READ_TIMEOUT, MYSQL_OPT_WRITE_TIMEOUT, MYSQL_OPT_PROTOCOL, MYSQL_OPT_SSL_MODE, MYSQL_OPT_RETRY_COUNT
bool MYSQL_OPT_COMPRESS, MYSQL_OPT_LOCAL_INFILE, MYSQL_REPORT_DATA_TRUNCATION, MYSQL_OPT_RECONNECT, MYSQL_ENABLE_CLEARTEXT_PLUGIN, MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS, MYSQL_OPT_OPTIONAL_RESULTSET_METADATA
const char * MYSQL_READ_DEFAULT_FILE, MYSQL_READ_DEFAULT_GROUP, MYSQL_SET_CHARSET_DIR, MYSQL_SET_CHARSET_NAME, MYSQL_SHARED_MEMORY_BASE_NAME, MYSQL_SET_CLIENT_IP, MYSQL_OPT_BIND, MYSQL_PLUGIN_DIR, MYSQL_DEFAULT_AUTH, MYSQL_OPT_SSL_KEY, MYSQL_OPT_SSL_CERT, MYSQL_OPT_SSL_CA, MYSQL_OPT_SSL_CAPATH, MYSQL_OPT_SSL_CIPHER, MYSQL_OPT_TLS_CIPHERSUITES, MYSQL_OPT_SSL_CRL, MYSQL_OPT_SSL_CRLPATH, MYSQL_OPT_TLS_VERSION, MYSQL_SERVER_PUBLIC_KEY, MYSQL_OPT_SSL_FIPS_MODE, MYSQL_OPT_TLS_SNI_SERVERNAME
<none, error returned> MYSQL_OPT_NAMED_PIPE, MYSQL_OPT_CONNECT_ATTR_RESET, MYSQL_OPT_CONNECT_ATTR_DELETE, MYSQL_INIT_COMMAND
- Parameters
-
| mysql | The MYSQL connection to operate on |
| option | The option to return the value for |
[out] | arg | Must be non-null. Receives the current value. |
- Returns
- status
- Return values
-