![]() |
MySQL 26.10.0
Source Code Documentation
|
A service that provides the apis for mysql command get_option and set_option. More...
#include <mysql_command_services.h>
Public Attributes | |
| mysql_service_status_t(* | set )(MYSQL_H mysql, int option, const void *arg) |
| Calls mysql_options api to sets connect options for connection-establishment functions such as real_connect(). More... | |
| mysql_service_status_t(* | get )(MYSQL_H mysql, int option, const void *arg) |
| Calls mysql_get_option api to returns the value of a mysql_options() option. More... | |
A service that provides the apis for mysql command get_option and set_option.
| mysql_service_status_t(* s_mysql_mysql_command_options::get) (MYSQL_H mysql, int option, const void *arg) |
Calls mysql_get_option api to returns the value of a mysql_options() option.
| [in] | mysql | A valid mysql object. |
| [in] | option | The option argument is the option that you want to get. |
| [out] | arg | The arg argument is the value for the option to store. |
| true | failure |
| false | success |
| mysql_service_status_t(* s_mysql_mysql_command_options::set) (MYSQL_H mysql, int option, const void *arg) |
Calls mysql_options api to sets connect options for connection-establishment functions such as real_connect().
| [in] | mysql | A valid mysql object. |
| [in] | option | The option argument is the option that you want to set. |
| [in] | arg | The arg argument is the value for the option. |
-----------—+----------------------------—+-----------------------------—+ Type | Option |Explanation | -----------—+----------------------------—+-----------------------------—+ const char * |MYSQL_TEXT_CONSUMER_* |Service implementation name for | | |the selected text consumer. | | |Null selects its default. | -----------—+----------------------------—+-----------------------------—+ MYSQL_THD |MYSQL_COMMAND_LOCAL_THD_HANDLE |The THD to run the query in. | | |If null a new internal THD will | | |be created. | -----------—+----------------------------—+-----------------------------—+ const char * |MYSQL_COMMAND_PROTOCOL |Socket/pipe name for | | |authentication. Null or "local" | | |uses defaults; unused by | | |embedded sessions. | -----------—+----------------------------—+-----------------------------—+ const char * |MYSQL_COMMAND_USER_NAME |The user name to send to the | | |server/set into the thread's | | |security context. | -----------—+----------------------------—+-----------------------------—+ const char * |MYSQL_COMMAND_HOST_NAME |The host name to use to | | |connect/set into the thread's | | |security context. | -----------—+----------------------------—+-----------------------------—+ int |MYSQL_COMMAND_TCPIP_PORT |The port to use to connect. | -----------—+----------------------------—+-----------------------------—+ const void * |MYSQL_NO_LOCK_REGISTRY |Non-null selects the no-lock | | |registry; null selects the | | |regular registry. | -----------—+----------------------------—+-----------------------------—+ uint32_t |MYSQL_COMMAND_CLIENT_FLAGS |Client flags passed to | | |mysql_real_connect() and exposed| | |by the default capabilities | | |consumer. | -----------—+----------------------------—+-----------------------------—+ const char * |MYSQL_COMMAND_PASSWORD |Password used to authenticate | | |against the current server. | -----------—+----------------------------—+-----------------------------—+ bool |MYSQL_COMMAND_BYPASS_MAX_ |Bypass max_connections for new | |CONNECTIONS |embedded sessions. Default: | | |true. | -----------—+----------------------------—+-----------------------------—+
| true | failure |
| false | success |