24#ifndef SQL_SERVICE_INTERFACE_INCLUDE
25#define SQL_SERVICE_INTERFACE_INCLUDE
29#define MAX_NUMBER_RETRIES 100
30#define SESSION_WAIT_TIMEOUT 2
Definition: sql_resultset.h:74
Definition: sql_service_interface.h:34
~Sql_service_interface()
Sql_service_interface destructor.
Definition: sql_service_interface.cc:44
bool is_acl_disabled()
Check if the server is running without user privileges.
Definition: sql_service_interface.cc:281
long execute_query(std::string query_string)
Executes a server command in a session.
Definition: sql_service_interface.cc:192
void set_charset(const CHARSET_INFO *charset)
set charset for the string data input(com_query for example)
Definition: sql_service_interface.h:210
long execute_internal(Sql_resultset *rset, enum cs_text_or_binary cs_txt_bin, const CHARSET_INFO *cs_charset, COM_DATA cmd, enum enum_server_command cmd_type)
Executes a server command in a session.
Definition: sql_service_interface.cc:129
MYSQL_SESSION m_session
Pointer to Srv_session class.
Definition: sql_service_interface.h:37
int is_session_killed(MYSQL_SESSION session)
Returns whether the session was killed.
Definition: sql_service_interface.h:218
int wait_for_session_server(ulong total_timeout)
Wait for server to be in SERVER_OPERATING state.
Definition: sql_service_interface.cc:235
Sql_service_interface(enum cs_text_or_binary cs_txt_bin=CS_TEXT_REPRESENTATION, const CHARSET_INFO *cs_charset=&my_charset_utf8mb3_general_ci)
Sql_service_interface constructor - Non-threaded version.
Definition: sql_service_interface.cc:40
long execute(COM_DATA cmd, enum enum_server_command cmd_type, Sql_resultset *rset, enum cs_text_or_binary cs_txt_bin=CS_TEXT_REPRESENTATION, const CHARSET_INFO *cs_charset=&my_charset_utf8mb3_general_ci)
Executes a server command in a session.
Definition: sql_service_interface.cc:223
int set_session_user(const char *user)
Set the session associated user.
Definition: sql_service_interface.cc:262
MYSQL_SESSION get_session()
Returns the MYSQL_SESSION object.
Definition: sql_service_interface.h:236
uint64_t get_session_id()
Returns the ID of a session.
Definition: sql_service_interface.h:227
void * m_plugin
Pointer to the group_replication plugin structure.
Definition: sql_service_interface.h:40
int open_thread_session(void *plugin_ptr)
Opens an threaded server session for internal server connection.
Definition: sql_service_interface.cc:87
const CHARSET_INFO * m_charset
Definition: sql_service_interface.h:46
void set_send_resulttype(enum cs_text_or_binary field_type)
Set send result type to CS_TEXT_REPRESENTATION or CS_BINARY_REPRESENTATION.
Definition: sql_service_interface.h:201
int open_session()
Opens an server session for internal server connection.
Definition: sql_service_interface.cc:66
enum cs_text_or_binary m_txt_or_bin
send result in string or native types
Definition: sql_service_interface.h:43
long configure_session()
Configures the session's session variables.
Definition: sql_service_interface.cc:122
MYSQL_STRINGS_EXPORT CHARSET_INFO my_charset_utf8mb3_general_ci
Definition: ctype-utf8.cc:5794
enum_server_command
A list of all MySQL protocol commands.
Definition: my_command.h:48
char * user
Definition: mysqladmin.cc:66
const std::string charset("charset")
cs_text_or_binary
Definition: service_command.h:389
@ CS_TEXT_REPRESENTATION
Definition: service_command.h:390
class Srv_session * MYSQL_SESSION
Definition: service_srv_session_bits.h:37
int srv_session_info_killed(MYSQL_SESSION session)
Returns whether the session was killed.
my_thread_id srv_session_info_get_session_id(MYSQL_SESSION session)
Returns the ID of a session.
bool sql_service_interface_deinit()
Definition: sql_service_interface.cc:311
bool sql_service_interface_init()
Definition: sql_service_interface.cc:294
Definition: m_ctype.h:421
Definition: com_data.h:104