1#ifndef MYSQL_SERVICE_COMMAND_INCLUDED
2#define MYSQL_SERVICE_COMMAND_INCLUDED
38#ifndef MYSQL_ABI_CHECK
295 uint statement_warn_count,
ulonglong affected_rows,
296 ulonglong last_insert_id,
const char *message);
307 const char *sqlstate);
399 void *service_callbacks_ctx);
402#ifdef MYSQL_DYNAMIC_PLUGIN
404#define command_service_run_command(t, command, data, cset, cbs, t_or_b, ctx) \
405 command_service->run_command((t), (command), (data), (cset), (cbs), \
458 void *service_callbacks_ctx);
Definition of COM_DATA to be used with the Command service as data input structure.
This file contains the field type.
enum_field_types
Column types for MySQL Note: Keep include/mysql/components/services/bits/stored_program_bits....
Definition: field_types.h:55
static int flags[50]
Definition: hp_test1.cc:40
A better implementation of the UNIX ctype(3) library.
enum_server_command
A list of all MySQL protocol commands.
Definition: my_command.h:48
unsigned long long int ulonglong
Definition: my_inttypes.h:56
long long int longlong
Definition: my_inttypes.h:55
Time declarations shared between the server and client API: you should not add anything to this heade...
constexpr value_type is_unsigned
Definition: classic_protocol_constants.h:273
const std::string charset("charset")
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
int(* get_double_t)(void *ctx, double value, uint32_t decimals)
Receive FLOAT/DOUBLE from server.
Definition: service_command.h:219
int(* end_result_metadata_t)(void *ctx, uint server_status, uint warn_count)
Indicates end of metadata for the result set.
Definition: service_command.h:109
int(* start_row_t)(void *ctx)
Indicates the beginning of a new row in the result set/metadata.
Definition: service_command.h:121
ulong(* get_client_capabilities_t)(void *ctx)
Return client's capabilities (see mysql_com.h, CLIENT_*)
Definition: service_command.h:152
int(* get_integer_t)(void *ctx, longlong value)
Receive TINY/SHORT/LONG value from server.
Definition: service_command.h:178
bool(* connection_alive_t)(void *ctx)
If the user of the srv_service is bound to a connection, this callback makes it possible to check if ...
Definition: service_command.h:326
int(* end_row_t)(void *ctx)
Indicates the end of the current row in the result set/metadata.
Definition: service_command.h:132
int(* get_time_t)(void *ctx, const MYSQL_TIME *value, uint decimals)
Receive TIME value from server.
Definition: service_command.h:244
struct command_service_st * command_service
int command_service_run_command(MYSQL_SESSION session, enum enum_server_command command, const union COM_DATA *data, const CHARSET_INFO *client_cs, const struct st_command_service_cbs *callbacks, enum cs_text_or_binary text_or_binary, void *service_callbacks_ctx)
Executes a server command in a session.
int(* start_result_metadata_t)(void *ctx, uint num_cols, uint flags, const CHARSET_INFO *resultcs)
Indicates beginning of metadata for the result set.
Definition: service_command.h:81
int(* get_date_t)(void *ctx, const MYSQL_TIME *value)
Get DATE value from server.
Definition: service_command.h:231
cs_text_or_binary
Definition: service_command.h:389
@ CS_BINARY_REPRESENTATION
Definition: service_command.h:391
@ CS_TEXT_REPRESENTATION
Definition: service_command.h:390
int(* get_datetime_t)(void *ctx, const MYSQL_TIME *value, uint decimals)
Receive DATETIME value from server.
Definition: service_command.h:257
void(* handle_error_t)(void *ctx, uint sql_errno, const char *err_msg, const char *sqlstate)
Command ended with ERROR.
Definition: service_command.h:306
int(* get_string_t)(void *ctx, const char *value, size_t length, const CHARSET_INFO *valuecs)
Get STRING value from server.
Definition: service_command.h:280
void(* abort_row_t)(void *ctx)
An error occurred during execution.
Definition: service_command.h:143
void(* handle_ok_t)(void *ctx, uint server_status, uint statement_warn_count, ulonglong affected_rows, ulonglong last_insert_id, const char *message)
Command ended with success.
Definition: service_command.h:294
int(* get_null_t)(void *ctx)
Receive NULL value from server.
Definition: service_command.h:163
void(* shutdown_t)(void *ctx, int server_shutdown)
Callback for shutdown notification from the server.
Definition: service_command.h:316
int(* get_longlong_t)(void *ctx, longlong value, uint is_unsigned)
Get LONGLONG value from server.
Definition: service_command.h:191
int(* get_decimal_t)(void *ctx, const decimal_t *value)
Receive DECIMAL value from server.
Definition: service_command.h:203
int(* field_metadata_t)(void *ctx, struct st_send_field *field, const CHARSET_INFO *charset)
Field metadata is provided via this callback.
Definition: service_command.h:95
Header file for the Server session service.
class Srv_session * MYSQL_SESSION
Definition: service_srv_session_bits.h:37
Definition: m_ctype.h:421
Definition: mysql_time.h:82
Definition: service_command.h:394
int(* run_command)(MYSQL_SESSION session, enum enum_server_command command, const union COM_DATA *data, const CHARSET_INFO *client_cs, const struct st_command_service_cbs *callbacks, enum cs_text_or_binary text_or_binary, void *service_callbacks_ctx)
Definition: service_command.h:395
Base struct used to represent decimal data type.
Definition: decimal.h:49
Definition: service_command.h:328
field_metadata_t field_metadata
Definition: service_command.h:360
get_time_t get_time
Definition: service_command.h:375
handle_error_t handle_error
Definition: service_command.h:382
get_longlong_t get_longlong
Definition: service_command.h:371
get_string_t get_string
Definition: service_command.h:377
get_client_capabilities_t get_client_capabilities
Definition: service_command.h:365
get_null_t get_null
Definition: service_command.h:369
get_integer_t get_integer
Definition: service_command.h:370
start_row_t start_row
Definition: service_command.h:362
end_row_t end_row
Definition: service_command.h:363
start_result_metadata_t start_result_metadata
Definition: service_command.h:359
abort_row_t abort_row
Definition: service_command.h:364
get_date_t get_date
Definition: service_command.h:374
get_datetime_t get_datetime
Definition: service_command.h:376
get_decimal_t get_decimal
Definition: service_command.h:372
end_result_metadata_t end_result_metadata
Definition: service_command.h:361
connection_alive_t connection_alive
Definition: service_command.h:386
handle_ok_t handle_ok
Definition: service_command.h:381
shutdown_t shutdown
Definition: service_command.h:383
get_double_t get_double
Definition: service_command.h:373
Definition: service_command.h:45
unsigned int charsetnr
Definition: service_command.h:52
enum_field_types type
Definition: service_command.h:55
const char * table_name
Definition: service_command.h:47
unsigned int flags
Definition: service_command.h:53
unsigned int decimals
Definition: service_command.h:54
const char * org_col_name
Definition: service_command.h:50
const char * org_table_name
Definition: service_command.h:48
unsigned long length
Definition: service_command.h:51
const char * col_name
Definition: service_command.h:49
const char * db_name
Definition: service_command.h:46
Definition: com_data.h:104
command
Definition: version_token.cc:280