MySQL 8.4.2
Source Code Documentation
utils_sqlstring.cc File Reference
#include "mysqlrouter/utils_sqlstring.h"
#include <cstring>
#include <string>

Namespaces

namespace  mysqlrouter
 

Functions

std::string ROUTER_MYSQL_EXPORT mysqlrouter::escape_sql_string (const std::string &s, bool wildcards)
 Escape a string to be used in a SQL query Same code as used by mysql. More...
 
std::string ROUTER_MYSQL_EXPORT mysqlrouter::escape_backticks (const std::string &string)
 
bool mysqlrouter::is_reserved_word (const std::string &word)
 
std::string ROUTER_MYSQL_EXPORT mysqlrouter::quote_identifier (const std::string &identifier, const char quote_char)
 
std::string ROUTER_MYSQL_EXPORT mysqlrouter::quote_identifier_if_needed (const std::string &ident, const char quote_char)
 Quotes the given identifier, but only if it needs to be quoted. More...
 

Variables

static const char * reserved_keywords []
 

Variable Documentation

◆ reserved_keywords

const char* reserved_keywords[]
static