![]() |
MySQL 9.5.0
Source Code Documentation
|
#include <rapidjson/rapidjson.h>#include <rapidjson/document.h>#include <cstdint>#include <memory>#include <optional>#include <string>#include <string_view>#include "mysqlrouter/jit_executor_value.h"Go to the source code of this file.
Classes | |
| class | shcore::JSON_dumper |
Namespaces | |
| namespace | shcore |
| namespace | shcore::json |
Typedefs | |
| using | shcore::json::JSON = rapidjson::Document |
Functions | |
| JSON | shcore::json::parse (std::string_view json) |
| Parses a JSON string. More... | |
| JSON | shcore::json::parse_object_or_throw (std::string_view json) |
| Parses a JSON string, input is expected to be a JSON object. More... | |
| std::string | shcore::json::required (const JSON &json, const char *name, bool allow_empty=false) |
| Fetches a string value of a required field. More... | |
| uint64_t | shcore::json::required_uint (const JSON &json, const char *name) |
| Fetches an unsigned integer value of a required field. More... | |
| std::optional< std::string > | shcore::json::optional (const JSON &json, const char *name, bool allow_empty=false) |
| Fetches a string value of an optional field. More... | |
| std::optional< uint64_t > | shcore::json::optional_uint (const JSON &json, const char *name) |
| Fetches an unsigned integer value of an optional field. More... | |
| std::string | shcore::json::to_string (const JSON &json) |
| Converts a JSON object to a string. More... | |
| std::string | shcore::json::to_pretty_string (const JSON &json) |
| Converts a JSON object to a nicely formatted string. More... | |