MariaDB Connector/C Data structures
This chapter describes the public data structures used by MariaDB Connector/C
MYSQL
The MYSQL
structure represents one database connection and is used by most of MariaDB Connector/C's API functions. The MYSQL structure needs to be allocated and initialized by mysql_init() API function.
The MYSQL
structure should be considered as opaque, copying or changing values of it's members might end up in unexpected results, errors or program crashes.
MYSQL_RES
The MYSQL_RES
structure represents a result set which contains data and meta data information. It will be returned by mysql_use_result(), mysql_store_result() and mysql_stmt_result_metadata() API functions and needs to be released by mysql_free_result().
The MYSQL_RES
structure should be considered as opaque, copying or changing values of it's members might end up in unexpected results, errors or program crashes.
MYSQL_STMT
The MYSQL_STMT
structure represents a prepared statement handle and is used by MariaDB Connector/C's prepared statemnt API functions. The MYSQL_STMT structure needs to be allocated and initialized by mysql_stmt_init() API function.
The MYSQL_STMT
structure should be considered as opaque, copying or changing values of it's members might end up in unexpected results, errors or program crashes.