MySQL 8.4.2
Source Code Documentation
|
Class for handling multiple options like e.g. More...
#include <multi_option.h>
Public Member Functions | |
constexpr | Multi_option () |
Constaexpr constructor. More... | |
void | add_value (char *value, bool clear) |
Adds option value to the container. More... | |
void | set_mysql_options (MYSQL *mysql, mysql_option option) |
Sets options to MYSQL structure. More... | |
void | free () |
Free the commands. More... | |
Private Types | |
using | Multi_option_container = Prealloced_array< char *, 5 > |
Type of the internal container. More... | |
Private Attributes | |
Multi_option_container * | option_values |
The internal container with values. More... | |
Class for handling multiple options like e.g.
–init-command, –init-command-add
|
private |
Type of the internal container.
|
inlineconstexpr |
Constaexpr constructor.
void Multi_option::add_value | ( | char * | value, |
bool | clear | ||
) |
Adds option value to the container.
value | [in]: value of the option |
clear | [in]: if true the container will be cleared before adding the command |
void Multi_option::free | ( | ) |
Free the commands.
void Multi_option::set_mysql_options | ( | MYSQL * | mysql, |
mysql_option | option | ||
) |
Sets options to MYSQL structure.
mysql | [in, out]: pointer to MYSQL structure to be augmented with the option |
option | [in]: option to be set |
|
private |
The internal container with values.