1#ifndef SERVICE_RULES_TABLE_INCLUDED
2#define SERVICE_RULES_TABLE_INCLUDED
31#ifndef MYSQL_ABI_CHECK
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Writable cursor that allows reading and updating of rows in a persistent table.
Definition: service_rules_table.h:64
int m_normalized_pattern_column
Definition: service_rules_table.h:166
bool table_is_malformed()
True if the table does not contain columns named 'pattern', 'replacement', 'enabled' and 'message'.
Definition: service_rules_table.h:98
int write()
Writes the row in the write buffer to the table at the current row.
Definition: rules_table_service.cc:177
column_id pattern_digest_column() const
Definition: service_rules_table.h:88
Cursor()
Creates a past-the-end cursor.
Definition: service_rules_table.h:77
column_id normalized_pattern_column() const
Definition: service_rules_table.h:89
column_id message_column() const
Definition: service_rules_table.h:87
Cursor & operator++()
Advances this Cursor.
Definition: service_rules_table.h:131
int m_pattern_column
Definition: service_rules_table.h:160
column_id enabled_column() const
Definition: service_rules_table.h:86
int m_pattern_database_column
Definition: service_rules_table.h:161
void set(int colno, const char *str, size_t length)
Sets the value of column colno to a string value.
Definition: rules_table_service.cc:164
int m_enabled_column
Definition: service_rules_table.h:163
bool operator==(const Cursor &other) const
Equality operator.
Definition: service_rules_table.h:117
static const column_id ILLEGAL_COLUMN_ID
Definition: service_rules_table.h:68
int m_replacement_column
Definition: service_rules_table.h:162
const char * fetch_string(int fieldno)
Fetches the value of the column with the given number as a C string.
Definition: rules_table_service.cc:139
column_id pattern_column() const
Definition: service_rules_table.h:81
bool m_table_is_malformed
Definition: service_rules_table.h:172
int m_last_read_status
Definition: service_rules_table.h:173
bool operator!=(const Cursor &other)
Inequality operator.
Definition: service_rules_table.h:125
void make_writeable()
Prepares the write buffer for updating the current row.
Definition: rules_table_service.cc:159
column_id pattern_database_column() const
Definition: service_rules_table.h:82
bool m_is_finished
Definition: service_rules_table.h:171
int read()
Definition: rules_table_service.cc:58
THD * m_thd
Definition: service_rules_table.h:168
~Cursor()
Closes the table scan if initiated and commits the transaction.
Definition: rules_table_service.cc:186
int m_pattern_digest_column
Definition: service_rules_table.h:165
bool had_serious_read_error() const
True if there was an unexpected error while reading, e.g. other than EOF.
Definition: rules_table_service.cc:182
Table_ref * m_table_list
Definition: service_rules_table.h:169
Cursor(const Cursor &)=default
int m_message_column
Definition: service_rules_table.h:164
int field_index(const char *field_name)
Definition: rules_table_service.cc:152
column_id replacement_column() const
Definition: service_rules_table.h:85
int column_id
Definition: service_rules_table.h:66
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1105
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Definition: service_rules_table.h:46
void free_string(const char *str)
Frees a const char pointer allocated in the server's dynamic library using new[].
Definition: rules_table_service.cc:68
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
int dummy_function_to_ensure_we_are_linked_into_the_server()
There must be one function of this kind in order for the symbols in the server's dynamic library to b...
Definition: rules_table_service.cc:51