MySQL 8.4.2
Source Code Documentation
s_mysql_mysql_text_consumer_metadata_v1 Struct Reference

A service that provides the apis for start_result_metadata, field_metadata, and end_result_metadata. More...

#include <mysql_command_consumer.h>

Public Attributes

mysql_service_status_t(* start_result_metadata )(SRV_CTX_H srv_ctx_h, unsigned int num_cols, unsigned int flags, const char *const collation_name)
 Indicates beginning of metadata for the result set. More...
 
mysql_service_status_t(* field_metadata )(SRV_CTX_H srv_ctx_h, struct Field_metadata *field, const char *const collation_name)
 Field metadata is provided to srv_ctx_h via this service api. More...
 
mysql_service_status_t(* end_result_metadata )(SRV_CTX_H srv_ctx_h, unsigned int server_status, unsigned warn_count)
 Indicates end of metadata for the result set. More...
 

Detailed Description

A service that provides the apis for start_result_metadata, field_metadata, and end_result_metadata.

Member Data Documentation

◆ end_result_metadata

mysql_service_status_t(* s_mysql_mysql_text_consumer_metadata_v1::end_result_metadata) (SRV_CTX_H srv_ctx_h, unsigned int server_status, unsigned warn_count)

Indicates end of metadata for the result set.

Parameters
srv_ctx_hDom_ctx data handle.
server_statusserver status.
warn_countwarning count of current stmt.
Returns
status of operation
Return values
falsesuccess.
truefailure.

◆ field_metadata

mysql_service_status_t(* s_mysql_mysql_text_consumer_metadata_v1::field_metadata) (SRV_CTX_H srv_ctx_h, struct Field_metadata *field, const char *const collation_name)

Field metadata is provided to srv_ctx_h via this service api.

Parameters
srv_ctx_hDom_ctx data handle
fieldField's metadata (see field.h)
collation_nameField's charset
Returns
status of operation
Return values
falsesuccess. srv_ctx_h field information prepared.
truefailure. invalid srv_ctx_h.

◆ start_result_metadata

mysql_service_status_t(* s_mysql_mysql_text_consumer_metadata_v1::start_result_metadata) (SRV_CTX_H srv_ctx_h, unsigned int num_cols, unsigned int flags, const char *const collation_name)

Indicates beginning of metadata for the result set.

Parameters
srv_ctx_hDom_ctx data handle
num_colsNumber of fields being sent
flagsFlags to alter the metadata sending
collation_nameCharset of the result set
Returns
status of operation
Return values
falsesuccess. srv_ctx_h rows were prepared.
truefailure. OOM or invalid srv_ctx_h.

The documentation for this struct was generated from the following file: