MySQL 8.0.40
Source Code Documentation
|
Structure to represent message from server sent after executing query. More...
#include <message_data.h>
Public Member Functions | |
Message_data (uint64 code, std::string message, Message_type message_type) | |
virtual | ~Message_data ()=default |
uint64 | get_code () const |
std::string | get_message () const |
Message_type | get_message_type () const |
bool | is_fatal () const |
Check if fatal error is encountered that mysql_upgrade cannot ignore. More... | |
std::string | get_message_type_string () const |
virtual void | print_error (std::string program_name) const |
Prints errors, warnings and notes to standard error. More... | |
Static Public Attributes | |
static const char * | message_type_strings [] |
static const int | message_type_strings_count |
Private Attributes | |
uint64 | m_code |
std::string | m_message |
Message_type | m_message_type |
Structure to represent message from server sent after executing query.
Message_data::Message_data | ( | uint64 | code, |
std::string | message, | ||
Message_type | message_type | ||
) |
|
virtualdefault |
uint64 Message_data::get_code | ( | ) | const |
std::string Message_data::get_message | ( | ) | const |
Message_type Message_data::get_message_type | ( | ) | const |
std::string Message_data::get_message_type_string | ( | ) | const |
bool Message_data::is_fatal | ( | ) | const |
Check if fatal error is encountered that mysql_upgrade cannot ignore.
For instance: server is not reachable during upgrade
true | fatal error is encountered false otherwise |
|
virtual |
Prints errors, warnings and notes to standard error.
Reimplemented in Mysql::Tools::Base::Warning_data.
|
private |
|
private |
|
private |
|
static |
|
static |