MariaDB Connector/C API Functions
See also MariaDB Connector/C API Prepared Statement Functions for functions relating to prepared statements.
Using the non-blocking API is documented here, and the API reference for non-blocking api calls here.
-
mariadb_cancel
Immediately aborts connection -
mariadb_get_infov
Retrieves generic or connection specific information -
mysql_affected_rows
Returns the number of affected rows in previous server operation -
mysql_autocommit
Toggles autocommit mode on or off for the current database connection -
mysql_change_user
Changes the user and default database of the current connection -
mysql_character_set_name
Returns the default client character set for the specified connection -
mysql_close
Closes a previously opened connection -
mysql_commit
Commits the current transaction -
mysql_data_seek
Adjusts the result pointer to an arbitrary row in the result -
mysql_debug
Enables debug logging -
mysql_dump_debug_info
Dump server status information -
mysql_errno
Returns the error code for the most recent function call -
mysql_error
Returns a string description of the last error -
mysql_escape_string
Deprecated: escapes a string using the default character set -
mysql_fetch_field
Returns the next field in the result set -
mysql_fetch_fields
Returns an array of fields representing the fields in a result set -
mysql_fetch_field_direct
Fetch meta data for a single field -
mysql_fetch_lengths
Returns the length of the columns of the current row -
mysql_fetch_row
Get a row from result set -
mysql_field_count
Returns the number of fields for the most recent query -
mysql_field_seek
Sets field cursor to a specified field offset -
mysql_field_tell
Get current offset of the field cursor -
mysql_free_result
Frees the memory associated to a result set. -
mysql_get_character_set_info
Returns information about the current active character set -
mysql_get_client_info
A string representing the version of the client library -
mysql_get_client_version
Returns a number representing the client library version -
mysql_get_host_info
Returns host information -
mysql_get_optionv
Retrieves the value for a given option previously set by mysql_optionsv() -
mysql_get_proto_info
Returns the protocol version number -
mysql_get_server_info
Get server info -
mysql_get_server_version
Get numeric server version -
mysql_get_ssl_cipher
Returns the name of the currently used cipher -
mysql_hex_string
Converts a string into hexadecimal format -
mysql_info
Information about the most recently executed query -
mysql_init
Prepares and initializes a MYSQL structure to be used with mysql_real_connect() -
mysql_insert_id
Returns the auto generated id used in the last query -
mysql_kill
Asks the server to kill a connection thread -
mysql_library_end
Call when finished using the library -
mysql_library_init
Initializes the library -
mysql_more_results
Check if there are any more query results from a multi query -
mysql_next_result
Prepares next result set from a multi query -
mysql_num_fields
Returns number of fields in a result set -
mysql_num_rows
Returns number of rows in a result set -
mysql_options
Set extra connect options and affect behavior for a connection -
mysql_optionsv
Set extra connect options and affect behavior for a connection. -
mysql_ping
Pings a server connection -
mysql_query
Performs a query on the database -
mysql_real_connect
Establishes a connection to a database server -
mysql_real_escape_string
Escapes special characters in a string -
mysql_real_query
Performs a query on the database -
mysql_refresh
Flush server information -
mysql_reset_connection
Resets the current connection and clears session state -
mysql_rollback
Rolls back current transaction -
mysql_row_seek
Positions row cursor -
mysql_row_tell
Returns position of result cursor -
mysql_select_db
Selects a database as default -
mysql_send_query
Syntax int mysql_send_query(MYSQL * mysql, const char ... -
mysql_server_end
Alias for mysql_library_end() -
mysql_server_init
Alias for mysql_library_init() -
mysql_session_track_get_first
retrieves the first session status change information received from the server -
mysql_session_track_get_next
Syntax int mysql_session_track_get_next(MYSQL * mysql,enum enum_session_sta... -
mysql_set_character_set
Sets the default client character set -
mysql_set_server_option
Enables or disables server option -
mysql_shutdown
Shuts down the database server -
mysql_sqlstate
Returns sqlstate error -
mysql_ssl_set
For setting up a secure TLS connection -
mysql_stat
Returns system status -
mysql_store_result
Returns a buffered resultset from the last executed query -
mysql_thread_end
Release thread specific memory for multi threaded client application -
mysql_thread_id
Returns the thread id for the current connection -
mysql_thread_init
Thread initialization for multi threaded clients -
mysql_thread_safe
Whether or not the client library is compiled as thread safe -
mysql_use_result
Initiate an unbuffered result set retrieval -
mysql_warning_count
Returns the number of warnings from the last executed query -
mariadb_reconnect
Reconnects to server -
mysql_read_query_result
Syntax int mysql_read_query_result(MYSQL * mysql); mysql - a mysql handle, ...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.