MySQL 8.0.40
Source Code Documentation
|
A service to fetch the query attributes for the current thread. More...
#include <mysql_query_attributes.h>
Public Attributes | |
mysql_service_status_t(* | create )(THD *thd, const char *name, mysqlh_query_attributes_iterator *out_iterator) |
Creates iterator that iterates through all parameters supplied. More... | |
mysql_service_status_t(* | get_type )(mysqlh_query_attributes_iterator iterator, enum enum_field_types *out_type) |
Gets the type of element pointed to by the iterator. More... | |
mysql_service_status_t(* | next )(mysqlh_query_attributes_iterator iter) |
Advances specified iterator to next element. More... | |
mysql_service_status_t(* | get_name )(mysqlh_query_attributes_iterator iterator, my_h_string *out_name_handle) |
Gets the name of the parameter. More... | |
void(* | release )(mysqlh_query_attributes_iterator iterator) |
Releases the Service Implementations iterator. More... | |
A service to fetch the query attributes for the current thread.
Use in conjunction with all the related services that operate on thread ids
mysql_service_status_t(* s_mysql_mysql_query_attributes_iterator::create) (THD *thd, const char *name, mysqlh_query_attributes_iterator *out_iterator) |
Creates iterator that iterates through all parameters supplied.
The iterator will be positioned at the first parameter if any.
thd | The thread handle for the thread you want data for. It NULL it will read the current thread. | |
name | The name of the parameter to position on. UTF8mb4. if non-NULL will position the iterator on the first occurrence of a parameter with the specified name, if any. | |
[out] | out_iterator | place to store the iterator handle. |
false | success. Can read data. |
true | failure. Either failed to initialize iterator or no parameters to read. |
mysql_service_status_t(* s_mysql_mysql_query_attributes_iterator::get_name) (mysqlh_query_attributes_iterator iterator, my_h_string *out_name_handle) |
Gets the name of the parameter.
iterator | query attributes iterator handle. | |
[out] | out_name_handle | the name of the parameter if supplied. Otherwise a nullptr. |
false | Valid |
true | Invalid iterator or not on an element |
mysql_service_status_t(* s_mysql_mysql_query_attributes_iterator::get_type) (mysqlh_query_attributes_iterator iterator, enum enum_field_types *out_type) |
Gets the type of element pointed to by the iterator.
iterator | query attributes iterator handle. | |
[out] | out_type | place to store the parameter type. |
false | success |
true | Invalid iterator or not on an element |
mysql_service_status_t(* s_mysql_mysql_query_attributes_iterator::next) (mysqlh_query_attributes_iterator iter) |
Advances specified iterator to next element.
iterator | iterator handle to advance. |
false | success |
true | Failure or no more elements |
void(* s_mysql_mysql_query_attributes_iterator::release) (mysqlh_query_attributes_iterator iterator) |
Releases the Service Implementations iterator.
Releases read lock on the Registry.
iterator | Service Implementation iterator handle. |
false | success |
true | failure |