1#ifndef MYSQL_SERVICE_COMMAND_INCLUDED
2#define MYSQL_SERVICE_COMMAND_INCLUDED
37#ifndef MYSQL_ABI_CHECK
294 uint statement_warn_count,
ulonglong affected_rows,
295 ulonglong last_insert_id,
const char *message);
306 const char *sqlstate);
398 void *service_callbacks_ctx);
401#ifdef MYSQL_DYNAMIC_PLUGIN
403#define command_service_run_command(t, command, data, cset, cbs, t_or_b, ctx) \
404 command_service->run_command((t), (command), (data), (cset), (cbs), \
457 void *service_callbacks_ctx);
static const sasl_callback_t callbacks[]
Definition: auth_ldap_sasl_client.h:44
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:54
static int flags[50]
Definition: hp_test1.cc:39
A better implementation of the UNIX ctype(3) library.
enum_server_command
A list of all MySQL protocol commands.
Definition: my_command.h:47
unsigned long long int ulonglong
Definition: my_inttypes.h:55
long long int longlong
Definition: my_inttypes.h:54
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:272
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:75
int(* get_double_t)(void *ctx, double value, uint32_t decimals)
Receive FLOAT/DOUBLE from server.
Definition: service_command.h:218
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:108
int(* start_row_t)(void *ctx)
Indicates the beginning of a new row in the result set/metadata.
Definition: service_command.h:120
ulong(* get_client_capabilities_t)(void *ctx)
Return client's capabilities (see mysql_com.h, CLIENT_*)
Definition: service_command.h:151
int(* get_integer_t)(void *ctx, longlong value)
Receive TINY/SHORT/LONG value from server.
Definition: service_command.h:177
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:325
int(* end_row_t)(void *ctx)
Indicates the end of the current row in the result set/metadata.
Definition: service_command.h:131
int(* get_time_t)(void *ctx, const MYSQL_TIME *value, uint decimals)
Receive TIME value from server.
Definition: service_command.h:243
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:80
int(* get_date_t)(void *ctx, const MYSQL_TIME *value)
Get DATE value from server.
Definition: service_command.h:230
cs_text_or_binary
Definition: service_command.h:388
@ CS_BINARY_REPRESENTATION
Definition: service_command.h:390
@ CS_TEXT_REPRESENTATION
Definition: service_command.h:389
int(* get_datetime_t)(void *ctx, const MYSQL_TIME *value, uint decimals)
Receive DATETIME value from server.
Definition: service_command.h:256
void(* handle_error_t)(void *ctx, uint sql_errno, const char *err_msg, const char *sqlstate)
Command ended with ERROR.
Definition: service_command.h:305
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:279
void(* abort_row_t)(void *ctx)
An error occurred during execution.
Definition: service_command.h:142
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:293
int(* get_null_t)(void *ctx)
Receive NULL value from server.
Definition: service_command.h:162
void(* shutdown_t)(void *ctx, int server_shutdown)
Callback for shutdown notification from the server.
Definition: service_command.h:315
int(* get_longlong_t)(void *ctx, longlong value, uint is_unsigned)
Get LONGLONG value from server.
Definition: service_command.h:190
int(* get_decimal_t)(void *ctx, const decimal_t *value)
Receive DECIMAL value from server.
Definition: service_command.h:202
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:94
Header file for the Server session service.
class Srv_session * MYSQL_SESSION
Definition: service_srv_session_bits.h:36
Definition: m_ctype.h:422
Definition: mysql_time.h:81
Definition: service_command.h:393
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:394
intg is the number of decimal digits (NOT number of decimal_digit_t's !) before the point frac is the...
Definition: decimal.h:51
Definition: service_command.h:327
field_metadata_t field_metadata
Definition: service_command.h:359
get_time_t get_time
Definition: service_command.h:374
handle_error_t handle_error
Definition: service_command.h:381
get_longlong_t get_longlong
Definition: service_command.h:370
get_string_t get_string
Definition: service_command.h:376
get_client_capabilities_t get_client_capabilities
Definition: service_command.h:364
get_null_t get_null
Definition: service_command.h:368
get_integer_t get_integer
Definition: service_command.h:369
start_row_t start_row
Definition: service_command.h:361
end_row_t end_row
Definition: service_command.h:362
start_result_metadata_t start_result_metadata
Definition: service_command.h:358
abort_row_t abort_row
Definition: service_command.h:363
get_date_t get_date
Definition: service_command.h:373
get_datetime_t get_datetime
Definition: service_command.h:375
get_decimal_t get_decimal
Definition: service_command.h:371
end_result_metadata_t end_result_metadata
Definition: service_command.h:360
connection_alive_t connection_alive
Definition: service_command.h:385
handle_ok_t handle_ok
Definition: service_command.h:380
shutdown_t shutdown
Definition: service_command.h:382
get_double_t get_double
Definition: service_command.h:372
Definition: service_command.h:44
unsigned int charsetnr
Definition: service_command.h:51
enum_field_types type
Definition: service_command.h:54
const char * table_name
Definition: service_command.h:46
unsigned int flags
Definition: service_command.h:52
unsigned int decimals
Definition: service_command.h:53
const char * org_col_name
Definition: service_command.h:49
const char * org_table_name
Definition: service_command.h:47
unsigned long length
Definition: service_command.h:50
const char * col_name
Definition: service_command.h:48
const char * db_name
Definition: service_command.h:45
Definition: com_data.h:111
command
Definition: version_token.cc:279