24#ifndef MYSQL_STORED_PROGRAM_IMP_H
25#define MYSQL_STORED_PROGRAM_IMP_H
38 const char *
key,
void *value));
49 const char *
key,
void *value));
55 const char *
key,
void *value));
69 uint16_t index, uint32_t *year,
bool *is_null));
72 uint16_t index, uint32_t year));
79 uint16_t index, uint32_t *hour, uint32_t *minute,
80 uint32_t *second, uint64_t *micro,
bool *negative,
84 uint16_t index, uint32_t hour, uint32_t minute,
85 uint32_t second, uint64_t micro,
bool negative,
93 uint16_t index, uint32_t *year, uint32_t *month,
94 uint32_t *day,
bool *is_null));
97 uint16_t index, uint32_t year, uint32_t month,
105 uint16_t index, uint32_t *year, uint32_t *month,
106 uint32_t *day, uint32_t *hour, uint32_t *minute,
107 uint32_t *second, uint64_t *micro,
bool *negative,
108 int32_t *time_zone_offset,
bool *is_null));
111 uint32_t year, uint32_t month, uint32_t day, uint32_t hour,
112 uint32_t minute, uint32_t second, uint64_t micro,
bool negative,
113 uint32_t decimals, int32_t time_zone_offset,
bool time_zone_aware));
120 uint16_t index, uint32_t *year, uint32_t *month,
121 uint32_t *day, uint32_t *hour, uint32_t *minute,
122 uint32_t *second, uint64_t *micro,
bool *negative,
123 int32_t *time_zone_offset,
bool *is_null));
126 uint32_t year, uint32_t month, uint32_t day, uint32_t hour,
127 uint32_t minute, uint32_t second, uint64_t micro,
bool negative,
128 uint32_t decimals, int32_t time_zone_offset,
bool time_zone_aware));
142 uint16_t index,
char const **
buffer,
143 size_t *out_len,
bool *is_null));
146 uint16_t index,
char const *
string,
154 uint16_t index, int64_t *
result,
bool *is_null));
157 uint16_t index, int64_t value));
164 uint16_t index, uint64_t *
result,
bool *is_null));
167 uint16_t index, uint64_t value));
174 uint16_t index,
double *
result,
bool *is_null));
177 uint16_t index,
double value));
191 uint32_t hour, uint32_t minute, uint32_t second,
192 uint64_t micro,
bool negative, uint8_t decimals));
199 uint32_t year, uint32_t month, uint32_t day));
206 uint32_t year, uint32_t month, uint32_t day,
207 uint32_t hour, uint32_t minute, uint32_t second,
208 uint64_t micro,
bool negative, uint32_t decimals,
209 int32_t time_zone_offset,
bool time_zone_aware));
216 uint32_t year, uint32_t month, uint32_t day,
217 uint32_t hour, uint32_t minute, uint32_t second,
218 uint64_t micro,
bool negative, uint32_t decimals,
219 int32_t time_zone_offset,
bool time_zone_aware));
232 char const *
string,
size_t length));
Definition: mysql_stored_program_imp.h:256
static mysql_service_status_t get(stored_program_handle sp, external_program_handle *value) noexcept
Definition: mysql_stored_program_imp.cc:1310
static mysql_service_status_t set(stored_program_handle sp, external_program_handle value) noexcept
Definition: mysql_stored_program_imp.cc:1322
Definition: mysql_stored_program_imp.h:58
static mysql_service_status_t get_name(stored_program_runtime_context sp_runtime_context, char const **value) noexcept
Returns the field name of the return value.
Definition: mysql_stored_program_imp.cc:372
Definition: mysql_stored_program_imp.h:195
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year, uint32_t month, uint32_t day) noexcept
Definition: mysql_stored_program_imp.cc:1068
Definition: mysql_stored_program_imp.h:202
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:1153
Definition: mysql_stored_program_imp.h:249
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, double value) noexcept
Set value of a float return value.
Definition: mysql_stored_program_imp.cc:1285
Definition: mysql_stored_program_imp.h:235
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, int64_t value) noexcept
Set value of an int return value.
Definition: mysql_stored_program_imp.cc:1245
Definition: mysql_stored_program_imp.h:222
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context) noexcept
Set null value.
Definition: mysql_stored_program_imp.cc:1204
Definition: mysql_stored_program_imp.h:228
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, char const *string, size_t length) noexcept
Set value of a string return value.
Definition: mysql_stored_program_imp.cc:1225
Definition: mysql_stored_program_imp.h:187
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint8_t decimals) noexcept
Definition: mysql_stored_program_imp.cc:1037
Definition: mysql_stored_program_imp.h:212
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:1185
Definition: mysql_stored_program_imp.h:242
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint64_t value) noexcept
Set value of an unsigned int return value.
Definition: mysql_stored_program_imp.cc:1265
Definition: mysql_stored_program_imp.h:180
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year) noexcept
Definition: mysql_stored_program_imp.cc:1013
Definition: mysql_stored_program_imp.h:89
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, uint32_t *month, uint32_t *day, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:624
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year, uint32_t month, uint32_t day) noexcept
Definition: mysql_stored_program_imp.cc:654
Definition: mysql_stored_program_imp.h:101
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:741
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, uint32_t *month, uint32_t *day, uint32_t *hour, uint32_t *minute, uint32_t *second, uint64_t *micro, bool *negative, int32_t *time_zone_offset, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:512
Definition: mysql_stored_program_imp.h:170
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, double *result, bool *is_null) noexcept
Get a float time value.
Definition: mysql_stored_program_imp.cc:971
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, double value) noexcept
Set value of a float argument.
Definition: mysql_stored_program_imp.cc:995
Definition: mysql_stored_program_imp.h:150
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, int64_t value) noexcept
Set value of an int argument.
Definition: mysql_stored_program_imp.cc:903
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, int64_t *result, bool *is_null) noexcept
Get value of an int argument.
Definition: mysql_stored_program_imp.cc:879
Definition: mysql_stored_program_imp.h:131
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index) noexcept
Set null value.
Definition: mysql_stored_program_imp.cc:795
Definition: mysql_stored_program_imp.h:138
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, char const **buffer, size_t *out_len, bool *is_null) noexcept
Get value of a string argument.
Definition: mysql_stored_program_imp.cc:822
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, char const *string, size_t length) noexcept
Set value of a string argument.
Definition: mysql_stored_program_imp.cc:857
Definition: mysql_stored_program_imp.h:75
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *hour, uint32_t *minute, uint32_t *second, uint64_t *micro, bool *negative, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:423
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint8_t decimals) noexcept
Definition: mysql_stored_program_imp.cc:590
Definition: mysql_stored_program_imp.h:116
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:774
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, uint32_t *month, uint32_t *day, uint32_t *hour, uint32_t *minute, uint32_t *second, uint64_t *micro, bool *negative, int32_t *time_zone_offset, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:544
Definition: mysql_stored_program_imp.h:160
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint64_t *result, bool *is_null) noexcept
Get value of an unsigned int argument.
Definition: mysql_stored_program_imp.cc:925
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint64_t value) noexcept
Set value of an unsigned int argument.
Definition: mysql_stored_program_imp.cc:949
Definition: mysql_stored_program_imp.h:65
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year) noexcept
Definition: mysql_stored_program_imp.cc:564
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:394
struct external_program_handle_imp * external_program_handle
The handle is created by the caller of external_program_execution service.
Definition: language_service.h:37
struct stored_program_handle_imp * stored_program_handle
The handle is an opaque pointer to a sp_head item.
Definition: language_service.h:42
Services for reading and storing various stored program properties of the server stored program's obj...
struct stored_program_runtime_context_imp * stored_program_runtime_context
Definition: mysql_stored_program.h:34
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
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
required string key
Definition: replication_asynchronous_connection_failover.proto:60
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