![]() |
MySQL 9.2.0
Source Code Documentation
|
Namespaces | |
namespace | anonymous_namespace{routing_guidelines.cc} |
namespace | anonymous_namespace{rules_parser.cc} |
namespace | rpn |
Classes | |
struct | Exp_info |
class | Guidelines_parse_error |
struct | Resolve_host |
Information about hostnames that needs to be resolved. More... | |
struct | Router_info |
Information about this Router instance. More... | |
class | Routing_guidelines_document_parser |
class | Routing_guidelines_engine |
Routing guidelines engine. More... | |
class | Routing_simulator |
class | Rules_parser |
Conducting the whole scanning and parsing of routing guidelines rules. More... | |
struct | Server_info |
Information about one server destination. More... | |
struct | Session_info |
Information about incoming session. More... | |
struct | Sql_info |
Information about query details. More... | |
Typedefs | |
using | List_info = std::vector< Exp_info > |
Enumerations | |
enum class | routing_guidelines_errc { empty_routing_guidelines , not_supported_in_md , unsupported_version , parse_error } |
Functions | |
const std::error_category & | routing_guidelines_category () noexcept |
std::error_code | make_error_code (routing_guidelines_errc e) noexcept |
bool | is_member_role (const std::string &s) |
bool | is_cluster_role (const std::string &s) |
std::string | str_strip (const std::string &s, const std::string &chars) |
std::string | format_json_error (const std::string &s, const rapidjson::ParseResult &ok, size_t chars) |
Format JSON parse error adding responsible JSON part. More... | |
std::string | mysql_unescape_string (std::string_view s) |
process escapes in a string , keep synchronous with sql_load unescape ("ntrb0ZN") More... | |
std::string | like_to_regexp (std::string_view pattern) |
int | get_protocol_family (const std::string &address) |
Provides the protocol family for the given literal address. More... | |
bool | is_ipv4 (const std::string &address) |
bool | is_ipv6 (const std::string &host) |
std::string | network (const std::string &address, unsigned int bitlen) |
Compute network part of an IPv4 address. More... | |
bool | json_document_complete (const std::string &s) |
Is JSON document held by the string complete or not. More... | |
bool | str_eq (std::string_view a, std::string_view b) |
bool | str_caseeq (const char *a, const char *b) |
bool | str_caseeq (const char *a, const char *b, size_t n) |
bool | str_caseeq (std::string_view lhs, std::string_view rhs) |
int | str_casecmp (const char *a, const char *b) |
Compares 2 strings case insensitive (for ascii) More... | |
int | str_casecmp (const std::string &a, const std::string &b) |
bool | str_ibeginswith (std::string_view str, std::string_view prefix) |
bool | str_beginswith (std::string_view str, std::string_view prefix) |
std::string | str_upper (std::string_view s) |
Convert a copy of an ASCII string to uppercase and return. More... | |
std::string | str_lower (std::string_view s) |
Convert a copy of an ASCII string to lowercase and return. More... | |
template<typename Container > | |
bool | case_contains (const Container &container, std::string_view str) |
Check if container contains identincal string independent of case. More... | |
Variables | |
constexpr char | kUndefinedRole [] = "UNDEFINED" |
Keyword meaning that the member/cluster role is undefined. More... | |
const std::array< std::string_view, 4 > | k_member_roles |
const std::array< std::string_view, 3 > | k_cluster_roles |
const std::array< std::string_view, 2 > | k_routing_strategies |
using routing_guidelines::List_info = typedef std::vector<Exp_info> |
|
strong |
bool routing_guidelines::case_contains | ( | const Container & | container, |
std::string_view | str | ||
) |
Check if container contains identincal string independent of case.
std::string routing_guidelines::format_json_error | ( | const std::string & | s, |
const rapidjson::ParseResult & | ok, | ||
size_t | chars | ||
) |
Format JSON parse error adding responsible JSON part.
s | parsed JSON |
ok | parse result |
chars | how big surrounding of erroneous part to attach |
int routing_guidelines::get_protocol_family | ( | const std::string & | address | ) |
Provides the protocol family for the given literal address.
address | The address to be checked. |
bool routing_guidelines::is_cluster_role | ( | const std::string & | s | ) |
bool routing_guidelines::is_ipv4 | ( | const std::string & | address | ) |
bool routing_guidelines::is_ipv6 | ( | const std::string & | host | ) |
bool routing_guidelines::is_member_role | ( | const std::string & | s | ) |
bool routing_guidelines::json_document_complete | ( | const std::string & | s | ) |
Is JSON document held by the string complete or not.
std::string routing_guidelines::like_to_regexp | ( | std::string_view | pattern | ) |
|
inlinenoexcept |
std::string routing_guidelines::mysql_unescape_string | ( | std::string_view | s | ) |
process escapes in a string , keep synchronous with sql_load unescape ("ntrb0ZN")
std::string routing_guidelines::network | ( | const std::string & | address, |
unsigned int | bitlen | ||
) |
Compute network part of an IPv4 address.
|
inlinenoexcept |
|
inline |
|
inline |
Compares 2 strings case insensitive (for ascii)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Convert a copy of an ASCII string to lowercase and return.
std::string routing_guidelines::str_strip | ( | const std::string & | s, |
const std::string & | chars | ||
) |
|
inline |
Convert a copy of an ASCII string to uppercase and return.
const std::array<std::string_view, 3> routing_guidelines::k_cluster_roles |
const std::array<std::string_view, 4> routing_guidelines::k_member_roles |
const std::array<std::string_view, 2> routing_guidelines::k_routing_strategies |
|
constexpr |
Keyword meaning that the member/cluster role is undefined.