MySQL 8.0.39
Source Code Documentation
|
Classes | |
class | Array_ptr |
A very limited smart pointer to protect against stack unwinding in case an STL class throws an exception. More... | |
class | Condition_handler |
This class may inherited and passed to parse() in order to handle conditions raised by the server. More... | |
class | Digest |
class | Lex_str |
A very limited smart pointer to protect against stack unwinding in case an STL class throws an exception. More... | |
class | Literal_visitor |
class | Session |
Functions | |
string | print_digest (const unsigned char *digest) |
static int | handle (int sql_errno, const char *sqlstate, const char *message, void *state) |
Bridge function between the C++ API offered by this module and the C API of the parser service. More... | |
static MYSQL_LEX_STRING | make_lex_string (const string &str) |
Convenience function, to avoid sprinkling the code with const_casts. More... | |
void | set_current_database (MYSQL_THD thd, const string &db) |
bool | parse (MYSQL_THD thd, const string &query, bool is_prepared, Condition_handler *handler) |
bool | parse (MYSQL_THD thd, const string &query, bool is_prepared) |
bool | is_supported_statement (MYSQL_THD thd) |
int | get_number_params (MYSQL_THD thd) |
static int | process_item (MYSQL_ITEM item, uchar *arg) |
bool | visit_parse_tree (MYSQL_THD thd, Literal_visitor *visitor) |
string | print_item (MYSQL_ITEM item) |
Prints an Item as an std::string. More... | |
string | get_current_query_normalized (MYSQL_THD thd) |
std::vector< int > | get_parameter_positions (MYSQL_THD thd) |
void | set_current_database (MYSQL_THD thd, const std::string &db) |
bool | parse (MYSQL_THD thd, const std::string &query, bool is_prepared, Condition_handler *handler) |
bool | parse (MYSQL_THD thd, const std::string &query, bool is_prepared) |
std::string services::get_current_query_normalized | ( | MYSQL_THD | thd | ) |
int services::get_number_params | ( | MYSQL_THD | thd | ) |
std::vector< int > services::get_parameter_positions | ( | MYSQL_THD | thd | ) |
|
static |
Bridge function between the C++ API offered by this module and the C API of the parser service.
This layer always uses a Condition_handler object that is passed to mysql_parser_parse().
bool services::is_supported_statement | ( | MYSQL_THD | thd | ) |
|
static |
Convenience function, to avoid sprinkling the code with const_casts.
bool services::parse | ( | MYSQL_THD | thd, |
const std::string & | query, | ||
bool | is_prepared | ||
) |
bool services::parse | ( | MYSQL_THD | thd, |
const std::string & | query, | ||
bool | is_prepared, | ||
Condition_handler * | handler | ||
) |
bool services::parse | ( | MYSQL_THD | thd, |
const string & | query, | ||
bool | is_prepared | ||
) |
bool services::parse | ( | MYSQL_THD | thd, |
const string & | query, | ||
bool | is_prepared, | ||
Condition_handler * | handler | ||
) |
std::string services::print_digest | ( | const unsigned char * | digest | ) |
std::string services::print_item | ( | MYSQL_ITEM | item | ) |
Prints an Item as an std::string.
|
static |
void services::set_current_database | ( | MYSQL_THD | thd, |
const std::string & | db | ||
) |
void services::set_current_database | ( | MYSQL_THD | thd, |
const string & | db | ||
) |
bool services::visit_parse_tree | ( | MYSQL_THD | thd, |
Literal_visitor * | visitor | ||
) |