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:72
Definition: sql_service_interface.h:32
~Sql_service_interface()
Sql_service_interface destructor.
Definition: sql_service_interface.cc:42
bool is_acl_disabled()
Check if the server is running without user privileges.
Definition: sql_service_interface.cc:279
long execute_query(std::string query_string)
Executes a server command in a session.
Definition: sql_service_interface.cc:190
void set_charset(const CHARSET_INFO *charset)
set charset for the string data input(com_query for example)
Definition: sql_service_interface.h:208
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:127
MYSQL_SESSION m_session
Pointer to Srv_session class.
Definition: sql_service_interface.h:35
int is_session_killed(MYSQL_SESSION session)
Returns whether the session was killed.
Definition: sql_service_interface.h:216
int wait_for_session_server(ulong total_timeout)
Wait for server to be in SERVER_OPERATING state.
Definition: sql_service_interface.cc:233
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:38
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:221
int set_session_user(const char *user)
Set the session associated user.
Definition: sql_service_interface.cc:260
MYSQL_SESSION get_session()
Returns the MYSQL_SESSION object.
Definition: sql_service_interface.h:234
uint64_t get_session_id()
Returns the ID of a session.
Definition: sql_service_interface.h:225
void * m_plugin
Pointer to the group_replication plugin structure.
Definition: sql_service_interface.h:38
int open_thread_session(void *plugin_ptr)
Opens an threaded server session for internal server connection.
Definition: sql_service_interface.cc:85
const CHARSET_INFO * m_charset
Definition: sql_service_interface.h:44
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:199
int open_session()
Opens an server session for internal server connection.
Definition: sql_service_interface.cc:64
enum cs_text_or_binary m_txt_or_bin
send result in string or native types
Definition: sql_service_interface.h:41
long configure_session()
Configures the session's session variables.
Definition: sql_service_interface.cc:120
MYSQL_PLUGIN_IMPORT CHARSET_INFO my_charset_utf8mb3_general_ci
Definition: ctype-utf8.cc:5778
enum_server_command
A list of all MySQL protocol commands.
Definition: my_command.h:48
char * user
Definition: mysqladmin.cc:60
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:309
bool sql_service_interface_init()
Definition: sql_service_interface.cc:292
Definition: m_ctype.h:385
Definition: com_data.h:112