![]() |
MySQL 8.4.7
Source Code Documentation
|
Functions | |
| stdx::expected< std::optional< std::string >, std::string > | get_string_attribute (const std::string_view &attributes, const std::string_view &name) |
| Returns value for the string field set in the attributes. More... | |
| stdx::expected< bool, std::string > | get_bool_tag (const std::string_view &attributes, const std::string_view &name, bool default_value) |
| Returns value for the boolean field set in the attributes. More... | |
| stdx::expected< bool, std::string > anonymous_namespace{cluster_metadata_instance_attributes.cc}::get_bool_tag | ( | const std::string_view & | attributes, |
| const std::string_view & | name, | ||
| bool | default_value | ||
| ) |
Returns value for the boolean field set in the attributes.
| attributes | string containing JSON with the attributes |
| name | name of the field to be fetched |
| default_value | value to be returned in case the given attribute is not present in the JSON |
| value | of the attribute JSON field as boolean |
| std::nullptr | if the given field is missing |
| error | message if reading attribute from JSON failed. |
| stdx::expected< std::optional< std::string >, std::string > anonymous_namespace{cluster_metadata_instance_attributes.cc}::get_string_attribute | ( | const std::string_view & | attributes, |
| const std::string_view & | name | ||
| ) |
Returns value for the string field set in the attributes.
| attributes | string containing JSON with the attributes |
| name | name of the field to be fetched |
| value | of the attribute JSON field as string |
| std::nullptr | if the given field is missing |
| error | message if reading attribute from JSON failed. |