MySQL 9.1.0
Source Code Documentation
|
Fetch the metadata of a service. More...
#include <mysql_command_services.h>
Public Attributes | |
mysql_service_status_t(* | get )(MYSQL_FIELD_H mysql_field_h, int metadata, void *data) |
Retrieves the metadata for the field. More... | |
Fetch the metadata of a service.
Usually used as follows:
mysql_service_status_t(* s_mysql_mysql_command_field_metadata::get) (MYSQL_FIELD_H mysql_field_h, int metadata, void *data) |
Retrieves the metadata for the field.
[in] | mysql_field_h | A valid mysql field handle object. |
[in] | metadata | A metadata ID to fetch. Can be one of: |
-----------—+----------------------------------------—+-----------------------------—+ Type | Option |Explanation | -----------—+----------------------------------------—+-----------------------------—+ const char * |MYSQL_COMMAND_FIELD_METADATA_NAME |The field name. | -----------—+----------------------------------------—+-----------------------------—+ const char * |MYSQL_COMMAND_FIELD_METADATA_TABLE_NAME |The table name. | -----------—+----------------------------------------—+-----------------------------—+ const char * |MYSQL_COMMAND_FIELD_METADATA_TABLE_DB_NAME |The table database name. | -----------—+----------------------------------------—+-----------------------------—+
[out] | data | A buffer to receive the data fetched. |
true | failure |
false | success |