26#ifndef ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_DATABASE_CONVERTERS_KIND_CONVERTER_H_
27#define ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_DATABASE_CONVERTERS_KIND_CONVERTER_H_
44 const static std::map<std::string, KindType> converter{
45 {
"PARAMETERS", KindType::PARAMETERS}, {
"RESULT", KindType::RESULT}};
50 *out = converter.at(
result);
51 }
catch (
const std::exception &) {
52 using namespace std::string_literals;
53 throw std::runtime_error(
"Invalid value for Kind: "s +
result);
Definition: kind_converter.h:39
void operator()(entry::KindType *out, const char *value) const
Definition: kind_converter.h:43
entry::KindType KindType
Definition: kind_converter.h:41
KindType
Definition: object.h:54
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83
Definition: authorize_manager.h:48
HARNESS_EXPORT std::string make_upper(std::string s)
upper-case a string.
Definition: string_utils.cc:89