24#ifndef MYSQL_COMMAND_CONSUMER_IMP_H
25#define MYSQL_COMMAND_CONSUMER_IMP_H
58 (
SRV_CTX_H srv_ctx_h,
unsigned int num_cols,
65 (
SRV_CTX_H srv_ctx_h,
unsigned int server_status,
66 unsigned int warn_count));
73 (
SRV_CTX_H srv_ctx_h,
unsigned int server_status,
74 unsigned int statement_warn_count,
75 unsigned long long affected_rows,
76 unsigned long long last_insert_id,
77 const char *
const message));
80 const char *
const err_msg,
const char *
const sqlstate));
94 unsigned int precision));
96 unsigned int decimals));
101 (
SRV_CTX_H,
unsigned long *capabilities));
104 const char **error_msg));
Definition: mysql_command_consumer_imp.h:53
static mysql_service_status_t start_result_metadata(SRV_CTX_H srv_ctx_h, unsigned int num_cols, unsigned int flags, const char *const collation_name) noexcept
Definition: mysql_command_consumer_imp.cc:75
static mysql_service_status_t get_datetime(SRV_CTX_H, const MYSQL_TIME_H value, unsigned int decimals) noexcept
Definition: mysql_command_consumer_imp.cc:381
static void handle_error(SRV_CTX_H srv_ctx_h, uint sql_errno, const char *const err_msg, const char *const sqlstate) noexcept
Definition: mysql_command_consumer_imp.cc:238
static mysql_service_status_t get_string(SRV_CTX_H, const char *const value, size_t length, const char *const collation_name) noexcept
Definition: mysql_command_consumer_imp.cc:398
static void client_capabilities(SRV_CTX_H, unsigned long *capabilities) noexcept
Definition: mysql_command_consumer_imp.cc:412
static mysql_service_status_t start(SRV_CTX_H *srv_ctx_h, MYSQL_H *mysql_h) noexcept
Definition: mysql_command_consumer_imp.cc:40
static mysql_service_status_t error(SRV_CTX_H, uint32_t *err_num, const char **error_msg) noexcept
Definition: mysql_command_consumer_imp.cc:425
static void handle_ok(SRV_CTX_H srv_ctx_h, unsigned int server_status, unsigned int statement_warn_count, unsigned long long affected_rows, unsigned long long last_insert_id, const char *const message) noexcept
Definition: mysql_command_consumer_imp.cc:219
static mysql_service_status_t end_result_metadata(SRV_CTX_H srv_ctx_h, unsigned int server_status, unsigned int warn_count) noexcept
Definition: mysql_command_consumer_imp.cc:149
static mysql_service_status_t abort_row(SRV_CTX_H srv_ctx_h) noexcept
Definition: mysql_command_consumer_imp.cc:185
static mysql_service_status_t get(SRV_CTX_H) noexcept
Definition: mysql_command_consumer_imp.cc:253
static mysql_service_status_t field_metadata(SRV_CTX_H srv_ctx_h, struct Field_metadata *field, const char *const collation_name) noexcept
Definition: mysql_command_consumer_imp.cc:116
static mysql_service_status_t end_row(SRV_CTX_H srv_ctx_h) noexcept
Definition: mysql_command_consumer_imp.cc:203
static mysql_service_status_t start_row(SRV_CTX_H srv_ctx_h) noexcept
Definition: mysql_command_consumer_imp.cc:154
static mysql_service_status_t get_time(SRV_CTX_H, const MYSQL_TIME_H value, unsigned int precision) noexcept
Definition: mysql_command_consumer_imp.cc:364
static mysql_service_status_t store_data(SRV_CTX_H, const char *data, size_t length) noexcept
Definition: mysql_command_consumer_imp.cc:464
static void end(SRV_CTX_H srv_ctx_h) noexcept
Definition: mysql_command_consumer_imp.cc:440
static mysql_service_status_t get_date(SRV_CTX_H, const MYSQL_TIME_H value) noexcept
Definition: mysql_command_consumer_imp.cc:347
static int flags[50]
Definition: hp_test1.cc:40
struct DECIMAL_T_H_imp * DECIMAL_T_H
Definition: mysql_command_consumer.h:32
struct SRV_CTX_H_imp * SRV_CTX_H
Definition: mysql_command_consumer.h:31
struct MYSQL_TIME_H_imp * MYSQL_TIME_H
Definition: mysql_command_consumer.h:33
struct MYSQL_H_imp * MYSQL_H
Definition: mysql_command_services.h:33
char * collation_name
Definition: audit_api_message_emit.cc:185
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
Specifies macros to define Service Implementations.
#define DEFINE_BOOL_METHOD(name, args)
A short macro to define method that returns bool, which is the most common case.
Definition: service_implementation.h:88
#define DEFINE_METHOD(retval, name, args)
A macro to ensure method implementation has required properties, that is it does not throw exceptions...
Definition: service_implementation.h:79
Definition: mysql_command_consumer_imp.h:31
std::string * m_sqlstate
Definition: mysql_command_consumer_imp.h:43
MYSQL_DATA ** m_result
Definition: mysql_command_consumer_imp.h:33
std::string * m_err_msg
Definition: mysql_command_consumer_imp.h:42
unsigned int m_cur_field_num
Definition: mysql_command_consumer_imp.h:37
unsigned int m_field_column_count
Definition: mysql_command_consumer_imp.h:36
MYSQL_ROWS * m_cur_row
Definition: mysql_command_consumer_imp.h:39
MYSQL_FIELD * m_fields
Definition: mysql_command_consumer_imp.h:35
uint32_t m_sql_errno
Definition: mysql_command_consumer_imp.h:38
std::string * m_message
Definition: mysql_command_consumer_imp.h:41
MYSQL_DATA * m_data
Definition: mysql_command_consumer_imp.h:34
MYSQL_ROWS ** m_prev_ptr
Definition: mysql_command_consumer_imp.h:40
MYSQL * m_mysql
Definition: mysql_command_consumer_imp.h:32
unsigned int uint
Definition: uca9-dump.cc:75