MySQL 8.0.40
Source Code Documentation
mysql_ps.h File Reference

Instrumentation helpers for prepared statements. More...

Go to the source code of this file.

Macros

#define MYSQL_CREATE_PS(IDENTITY, ID, LOCKER, NAME, NAME_LENGTH, SQLTEXT, SQLTEXT_LENGTH)
 
#define MYSQL_EXECUTE_PS(LOCKER, PREPARED_STMT)    inline_mysql_execute_prepared_stmt(LOCKER, PREPARED_STMT)
 
#define MYSQL_DESTROY_PS(PREPARED_STMT)    inline_mysql_destroy_prepared_stmt(PREPARED_STMT)
 
#define MYSQL_REPREPARE_PS(PREPARED_STMT)    inline_mysql_reprepare_prepared_stmt(PREPARED_STMT)
 
#define MYSQL_SET_PS_TEXT(PREPARED_STMT, SQLTEXT, SQLTEXT_LENGTH)    inline_mysql_set_prepared_stmt_text(PREPARED_STMT, SQLTEXT, SQLTEXT_LENGTH)
 
#define MYSQL_SET_PS_SECONDARY_ENGINE(PREPARED_STMT, SECONDARY)    inline_mysql_set_prepared_stmt_secondary_engine(PREPARED_STMT, SECONDARY)
 

Functions

static struct PSI_prepared_stmtinline_mysql_create_prepared_stmt (void *identity, uint stmt_id, PSI_statement_locker *locker, const char *stmt_name, size_t stmt_name_length, const char *sqltext, size_t sqltext_length)
 
static void inline_mysql_execute_prepared_stmt (PSI_statement_locker *locker, PSI_prepared_stmt *prepared_stmt)
 
static void inline_mysql_destroy_prepared_stmt (PSI_prepared_stmt *prepared_stmt)
 
static void inline_mysql_reprepare_prepared_stmt (PSI_prepared_stmt *prepared_stmt)
 
static void inline_mysql_set_prepared_stmt_text (PSI_prepared_stmt *prepared_stmt, const char *text, uint text_len)
 
static void inline_mysql_set_prepared_stmt_secondary_engine (PSI_prepared_stmt *prepared_stmt, bool secondary)
 

Detailed Description

Instrumentation helpers for prepared statements.

Macro Definition Documentation

◆ MYSQL_CREATE_PS

#define MYSQL_CREATE_PS (   IDENTITY,
  ID,
  LOCKER,
  NAME,
  NAME_LENGTH,
  SQLTEXT,
  SQLTEXT_LENGTH 
)
Value:
inline_mysql_create_prepared_stmt(IDENTITY, ID, LOCKER, NAME, NAME_LENGTH, \
SQLTEXT, SQLTEXT_LENGTH)
static struct PSI_prepared_stmt * inline_mysql_create_prepared_stmt(void *identity, uint stmt_id, PSI_statement_locker *locker, const char *stmt_name, size_t stmt_name_length, const char *sqltext, size_t sqltext_length)
Definition: mysql_ps.h:87
#define NAME(f)
Definition: xcom_base.cc:4132

◆ MYSQL_DESTROY_PS

#define MYSQL_DESTROY_PS (   PREPARED_STMT)     inline_mysql_destroy_prepared_stmt(PREPARED_STMT)

◆ MYSQL_EXECUTE_PS

#define MYSQL_EXECUTE_PS (   LOCKER,
  PREPARED_STMT 
)     inline_mysql_execute_prepared_stmt(LOCKER, PREPARED_STMT)

◆ MYSQL_REPREPARE_PS

#define MYSQL_REPREPARE_PS (   PREPARED_STMT)     inline_mysql_reprepare_prepared_stmt(PREPARED_STMT)

◆ MYSQL_SET_PS_SECONDARY_ENGINE

#define MYSQL_SET_PS_SECONDARY_ENGINE (   PREPARED_STMT,
  SECONDARY 
)     inline_mysql_set_prepared_stmt_secondary_engine(PREPARED_STMT, SECONDARY)

◆ MYSQL_SET_PS_TEXT

#define MYSQL_SET_PS_TEXT (   PREPARED_STMT,
  SQLTEXT,
  SQLTEXT_LENGTH 
)     inline_mysql_set_prepared_stmt_text(PREPARED_STMT, SQLTEXT, SQLTEXT_LENGTH)

Function Documentation

◆ inline_mysql_create_prepared_stmt()

static struct PSI_prepared_stmt * inline_mysql_create_prepared_stmt ( void *  identity,
uint  stmt_id,
PSI_statement_locker locker,
const char *  stmt_name,
size_t  stmt_name_length,
const char *  sqltext,
size_t  sqltext_length 
)
inlinestatic

◆ inline_mysql_destroy_prepared_stmt()

static void inline_mysql_destroy_prepared_stmt ( PSI_prepared_stmt prepared_stmt)
inlinestatic

◆ inline_mysql_execute_prepared_stmt()

static void inline_mysql_execute_prepared_stmt ( PSI_statement_locker locker,
PSI_prepared_stmt prepared_stmt 
)
inlinestatic

◆ inline_mysql_reprepare_prepared_stmt()

static void inline_mysql_reprepare_prepared_stmt ( PSI_prepared_stmt prepared_stmt)
inlinestatic

◆ inline_mysql_set_prepared_stmt_secondary_engine()

static void inline_mysql_set_prepared_stmt_secondary_engine ( PSI_prepared_stmt prepared_stmt,
bool  secondary 
)
inlinestatic

◆ inline_mysql_set_prepared_stmt_text()

static void inline_mysql_set_prepared_stmt_text ( PSI_prepared_stmt prepared_stmt,
const char *  text,
uint  text_len 
)
inlinestatic