![]() |
MySQL 26.10.0
Source Code Documentation
|
Classes | |
| class | Backend |
| Owns and controls the embedded MRS backend lifecycle. More... | |
| class | Command_executor |
| Executes text queries and prepared statements through component services. More... | |
| class | ComponentEmbeddedRuntimeServices |
| Adapts embedded MRS runtime operations to Server component services. More... | |
| struct | CurrentSecurityCtx |
| class | Log |
| Emits MRS messages through the MySQL Server logging services. More... | |
| class | MRSComponent |
| Coordinates registration and lifecycle of the MySQL REST Service component. More... | |
| class | Mysql_command_service_session |
| Owns the component command-service handle and optional thread initialization. More... | |
| struct | RouterConfig |
| class | ServerConfig |
| Holds the Server configuration required by the MRS component. More... | |
| struct | Statusvar |
| class | StatusVars |
| Owns and manages status variables exposed by the MRS component. More... | |
| class | SystemVars |
| Owns and manages system variables exposed by the MRS component. More... | |
| struct | Sysvar |
| struct | SysvarBase |
| class | Table_accessor |
| RAII wrapper around MySQL Table Access services. More... | |
| struct | UDF |
| class | UDFs |
| Owns and manages the UDFs provided by the MRS component. More... | |
Typedefs | |
| using | Row = std::vector< std::string > |
| using | Resultset = std::vector< Row > |
| using | sv_ulong = Sysvar< unsigned long > |
| using | sv_ulonglong = Sysvar< unsigned long long > |
| using | sv_char = Sysvar< const char * > |
Enumerations | |
| enum class | LogLevel : uint8_t { ERROR , WARNING , DEBUG } |
| enum class | AccountProvisioning : std::uint8_t { kValidateOnly , kAllowInstallerContext } |
| enum class | StatementResultStatus { kError , kResult , kNoResult } |
| enum class | CommandResultStatus { kError , kResult , kNoResult } |
Variables | |
| std::unique_ptr< MRSComponent > | s_mrs_component {nullptr} |
| constexpr const char | kMysqlRestServiceAdmin [] = "MYSQL_REST_SERVICE_ADMIN" |
| constexpr unsigned int | kCpusPerIoWorker = 4 |
| constexpr const char | kMetadataSchemaCheckQuery [] |
| constexpr const char | kMetadataSchemaVersionQuery [] |
| constexpr uint64_t | kDefaultHttpPort = 33443 |
| constexpr uint64_t | kMinHttpPort = 1 |
| constexpr uint64_t | kMaxHttpPort = 65535 |
| constexpr unsigned long | kDefaultIoWorkerThreads = 0 |
| constexpr unsigned long | kMinIoWorkerThreads = 0 |
| constexpr unsigned long | kMaxIoWorkerThreads = 1024 |
| constexpr unsigned long | kDefaultHttpMaxConnections = 1024 |
| constexpr unsigned long | kMinHttpMaxConnections = 1 |
| constexpr unsigned long | kMaxHttpMaxConnections = 100000 |
| constexpr uint64_t | kDefaultHttpMaxBodySize = 16 * 1024 * 1024 |
| constexpr uint64_t | kMinHttpMaxBodySize = 0 |
| constexpr uint64_t | kMaxHttpMaxBodySize = 2147483648ULL |
| unsigned constexpr long | MAX_SAFE_LENGTH = 255 |
| constexpr const char | kRestartUdfName [] = "mysql_rest_service_restart" |
| constexpr const char | kStopUdfName [] = "mysql_rest_service_stop" |
| constexpr const char | kStartUdfName [] = "mysql_rest_service_start" |
| using mrs_component::Resultset = typedef std::vector<Row> |
| using mrs_component::Row = typedef std::vector<std::string> |
| using mrs_component::sv_char = typedef Sysvar<const char *> |
| using mrs_component::sv_ulong = typedef Sysvar<unsigned long> |
| using mrs_component::sv_ulonglong = typedef Sysvar<unsigned long long> |
|
strong |
|
strong |
|
strong |
|
strong |
| std::unique_ptr< mysqlrouter::MySQLSession::ResultRow > mrs_component::clone_result_row | ( | const mysqlrouter::MySQLSession::ResultRow & | row | ) |
| void mrs_component::configure_statement_handle | ( | my_h_statement | stmt | ) |
| std::unique_ptr< collector::MysqlCacheManager > mrs_component::create_embedded_mysql_cache_manager | ( | const mrs::Configuration & | configuration, |
| const std::string & | local_address, | ||
| const std::string & | metadata_auth_id, | ||
| const std::string & | data_auth_id | ||
| ) |
| std::shared_ptr< collector::MysqlFixedPoolManager > mrs_component::create_embedded_mysql_user_session_pool | ( | uint32_t | passthrough_pool_size, |
| const std::string & | local_address, | ||
| const std::string & | auth_id | ||
| ) |
| void mrs_component::deinitialize_io_thread_instrumentation | ( | size_t | ) |
|
noexcept |
|
static |
|
static |
|
static |
| void mrs_component::initialize_io_thread_instrumentation | ( | size_t | index | ) |
| void mrs_component::initialize_worker_command_thread | ( | ) |
|
inline |
| std::unique_ptr< mysqlrouter::MySQLSession > mrs_component::make_embedded_mysql_session | ( | bool | bypass_max_connections | ) |
| MRSComponent & mrs_component::mrs_component | ( | ) |
Returns the active MRS component instance.
| unsigned long mrs_component::mysql_bind_data_length | ( | const MYSQL_BIND & | bind | ) |
| uint64_t mrs_component::mysql_bind_type_to_statement_type | ( | enum_field_types | type | ) |
|
static |
Deinitialize the MySQL Rest Service Component.
|
static |
Initialize the MySQL Rest Service Component.
| CommandResultStatus mrs_component::process_command_result | ( | MYSQL_H | mysql_h, |
| const mysqlrouter::MySQLSession::ResultRowProcessor & | processor, | ||
| const mysqlrouter::MySQLSession::FieldValidator & | validator | ||
| ) |
| StatementResultStatus mrs_component::process_statement_result | ( | my_h_statement | stmt, |
| const mysqlrouter::MySQLSession::ResultRowProcessor & | processor, | ||
| const mysqlrouter::MySQLSession::FieldValidator & | validator | ||
| ) |
| void mrs_component::register_io_thread_instrumentation | ( | ) |
|
static |
|
inline |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| std::unique_ptr< MRSComponent > mrs_component::s_mrs_component {nullptr} |