23#ifndef DD__UTILS_INCLUDED
24#define DD__UTILS_INCLUDED
93bool eat_to(String_type::const_iterator &it, String_type::const_iterator
end,
116 String_type::const_iterator
end,
char c);
132bool eat_pairs(String_type::const_iterator &it, String_type::const_iterator
end,
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
The Properties class defines an interface for storing key=value pairs, where both key and value may b...
Definition: properties.h:73
unsigned long long int ulonglong
Definition: my_inttypes.h:55
int64_t my_time_t
Portable time_t replacement.
Definition: my_time_t.h:31
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1054
Definition: commit_order_queue.h:33
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
bool eat_to(String_type::const_iterator &it, String_type::const_iterator end, char c)
Start at it, iterate until we hit an unescaped c or the end of the string.
Definition: utils.cc:94
bool unescape(String_type &dest)
In place unescaping of String_type.
Definition: utils.cc:73
bool execute_query(THD *thd, const dd::String_type &q_buf)
Create a lex string for the query from the string supplied and execute the query.
Definition: utils.cc:43
bool end_transaction(THD *thd, bool error)
Helper function to do rollback or commit, depending on error.
Definition: utils.cc:180
bool eat_pairs(String_type::const_iterator &it, String_type::const_iterator end, dd::Properties *props)
Start at it, find a key and value separated by an unescaped '='.
Definition: utils.cc:143
void escape(String_type *sp, const String_type &src)
Escaping of a String_type.
Definition: utils.cc:61
bool eat_str(String_type &dest, String_type::const_iterator &it, String_type::const_iterator end, char c)
Start at it, find first unescaped occorrence of c, create destination string and copy substring to de...
Definition: utils.cc:121
bool is_string_in_lowercase(const String_type &str, const CHARSET_INFO *cs)
Method to verify if string is in lowercase.
Definition: utils.cc:171
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
ulonglong my_time_t_to_ull_datetime(my_time_t seconds_since_epoch)
Convert seconds since epoch, to a datetime ulonglong using my_tz_OFFSET0 suitable for timestamp field...
Definition: utils.cc:163
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:191
Definition: m_ctype.h:382