1#ifndef SERVICE_RULES_TABLE_INCLUDED
2#define SERVICE_RULES_TABLE_INCLUDED
30#ifndef MYSQL_ABI_CHECK
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:250
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
Writable cursor that allows reading and updating of rows in a persistent table.
Definition: service_rules_table.h:63
int m_normalized_pattern_column
Definition: service_rules_table.h:165
bool table_is_malformed()
True if the table does not contain columns named 'pattern', 'replacement', 'enabled' and 'message'.
Definition: service_rules_table.h:97
int write()
Writes the row in the write buffer to the table at the current row.
Definition: rules_table_service.cc:176
column_id pattern_digest_column() const
Definition: service_rules_table.h:87
Cursor()
Creates a past-the-end cursor.
Definition: service_rules_table.h:76
column_id normalized_pattern_column() const
Definition: service_rules_table.h:88
column_id message_column() const
Definition: service_rules_table.h:86
Cursor & operator++()
Advances this Cursor.
Definition: service_rules_table.h:130
int m_pattern_column
Definition: service_rules_table.h:159
column_id enabled_column() const
Definition: service_rules_table.h:85
int m_pattern_database_column
Definition: service_rules_table.h:160
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:163
int m_enabled_column
Definition: service_rules_table.h:162
bool operator==(const Cursor &other) const
Equality operator.
Definition: service_rules_table.h:116
static const column_id ILLEGAL_COLUMN_ID
Definition: service_rules_table.h:67
int m_replacement_column
Definition: service_rules_table.h:161
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:138
column_id pattern_column() const
Definition: service_rules_table.h:80
bool m_table_is_malformed
Definition: service_rules_table.h:171
int m_last_read_status
Definition: service_rules_table.h:172
bool operator!=(const Cursor &other)
Inequality operator.
Definition: service_rules_table.h:124
void make_writeable()
Prepares the write buffer for updating the current row.
Definition: rules_table_service.cc:158
column_id pattern_database_column() const
Definition: service_rules_table.h:81
bool m_is_finished
Definition: service_rules_table.h:170
int read()
Definition: rules_table_service.cc:57
THD * m_thd
Definition: service_rules_table.h:167
~Cursor()
Closes the table scan if initiated and commits the transaction.
Definition: rules_table_service.cc:185
int m_pattern_digest_column
Definition: service_rules_table.h:164
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:181
Table_ref * m_table_list
Definition: service_rules_table.h:168
Cursor(const Cursor &)=default
int m_message_column
Definition: service_rules_table.h:163
int field_index(const char *field_name)
Definition: rules_table_service.cc:151
column_id replacement_column() const
Definition: service_rules_table.h:84
int column_id
Definition: service_rules_table.h:65
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1085
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:75
Definition: service_rules_table.h:45
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:67
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:191
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:50