MySQL 26.10.0
Source Code Documentation
srv_session.h File Reference

Header file for the Srv_session class that wraps THD, DA in one bundle for easy use of internal APIs. More...

#include <stdint.h>
#include "lex_string.h"
#include "my_command.h"
#include "my_psi_config.h"
#include "my_thread_local.h"
#include "mysql/components/services/bits/psi_statement_bits.h"
#include "mysql/service_command.h"
#include "mysql/service_srv_session.h"
#include "mysql/strings/m_ctype.h"
#include "sql/protocol_callback.h"
#include "sql/sql_class.h"
#include "sql/sql_error.h"
#include "violite.h"

Go to the source code of this file.

Classes

class  Srv_session
 
struct  Srv_session::st_err_protocol_ctx
 
class  Srv_session::Session_backup_and_attach
 

Functions

Srv_session * srv_session_open_internal (srv_session_error_cb error_cb, void *plugin_ctx, bool ignore_max_connection_limit, bool allow_extra_connection=true)
 Opens server session. More...
 

Variables

PSI_statement_info stmt_info_new_packet
 

Detailed Description

Header file for the Srv_session class that wraps THD, DA in one bundle for easy use of internal APIs.

Srv_session also provides means for physical thread initialization and respective deinitialization.

Function Documentation

◆ srv_session_open_internal()

Srv_session * srv_session_open_internal ( srv_session_error_cb  error_cb,
void *  plugin_ctx,
bool  ignore_max_connection_limit,
bool  allow_extra_connection 
)

Opens server session.

Parameters
error_cbDefault completion callback
plugin_ctxPlugin's context, opaque pointer that would be provided to callbacks. Might be NULL.
ignore_max_connection_limittrue if the session is exempted
allow_extra_connectiontrue to allow the reserved extra connection
Returns
handler of session on success NULL on failure

Variable Documentation

◆ stmt_info_new_packet

PSI_statement_info stmt_info_new_packet
extern