MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
anonymous_namespace{router_conf.cc} Namespace Reference

Functions

void assert_one_of_ci (const std::string &key, const std::string &value, std::initializer_list< const char * > allowed_values)
 assert 'value' is one of the allowed values. More...
 
void assert_option_value_in_range (const std::string &value, const int min, const int max)
 
mysqlrouter::URI parse_server_uri (const std::string &server_uri, const std::string &bootstrap_socket)
 
std::string get_opt (const std::map< std::string, std::string > &map, const std::string &key, const std::string &default_value)
 
void set_ssl_options (MySQLSession *sess, const std::map< std::string, std::string > &options)
 
bool is_valid_conf_ident (const std::string &name)
 

Function Documentation

◆ assert_one_of_ci()

void anonymous_namespace{router_conf.cc}::assert_one_of_ci ( const std::string &  key,
const std::string &  value,
std::initializer_list< const char * >  allowed_values 
)

assert 'value' is one of the allowed values.

value is compared case-insensitive

Parameters
keykey name to report in case of failure
valuevalue to check
allowed_valuesallowed values.
Exceptions
std::invalid_argumentif value is not part of allowed_values.

◆ assert_option_value_in_range()

void anonymous_namespace{router_conf.cc}::assert_option_value_in_range ( const std::string &  value,
const int  min,
const int  max 
)

◆ get_opt()

std::string anonymous_namespace{router_conf.cc}::get_opt ( const std::map< std::string, std::string > &  map,
const std::string &  key,
const std::string &  default_value 
)
inline

◆ is_valid_conf_ident()

bool anonymous_namespace{router_conf.cc}::is_valid_conf_ident ( const std::string &  name)

◆ parse_server_uri()

mysqlrouter::URI anonymous_namespace{router_conf.cc}::parse_server_uri ( const std::string &  server_uri,
const std::string &  bootstrap_socket 
)

◆ set_ssl_options()

void anonymous_namespace{router_conf.cc}::set_ssl_options ( MySQLSession sess,
const std::map< std::string, std::string > &  options 
)