MySQL  8.0.22
Source Code Documentation
client_extensions_macros.h File Reference

helper macros to deal with MYSQL options More...

Go to the source code of this file.

Macros

#define ALLOCATE_EXTENSIONS(OPTS)
 
#define ENSURE_EXTENSIONS_PRESENT(OPTS)
 
#define EXTENSION_SET_STRING(OPTS, X, STR)
 
#define SET_OPTION(opt_var, arg)
 
#define EXTENSION_SET_SSL_STRING(OPTS, X, STR, mode)
 

Variables

PSI_memory_key key_memory_mysql_options
 

Detailed Description

helper macros to deal with MYSQL options

Macro Definition Documentation

◆ ALLOCATE_EXTENSIONS

#define ALLOCATE_EXTENSIONS (   OPTS)
Value:
(OPTS)->extension = (struct st_mysql_options_extention *)my_malloc( \
#define MY_WME
Definition: my_sys.h:117
PSI_memory_key key_memory_mysql_options
Definition: client.cc:152
#define MYF(v)
Definition: sql_common.h:127
#define MY_ZEROFILL
Definition: my_memory.cc:43
void * my_malloc(PSI_memory_key key, size_t size, int flags)
Below functions are used by the components.
Definition: my_memory.cc:57

◆ ENSURE_EXTENSIONS_PRESENT

#define ENSURE_EXTENSIONS_PRESENT (   OPTS)
Value:
do { \
if (!(OPTS)->extension) ALLOCATE_EXTENSIONS(OPTS); \
} while (0)
#define ALLOCATE_EXTENSIONS(OPTS)
Definition: client_extensions_macros.h:33

◆ EXTENSION_SET_SSL_STRING

#define EXTENSION_SET_SSL_STRING (   OPTS,
  X,
  STR,
  mode 
)
Value:
do { \
EXTENSION_SET_STRING(OPTS, X, static_cast<const char *>(STR)); \
if ((OPTS)->extension->X) (OPTS)->extension->ssl_mode = mode; \
} while (0)
#define X(b)
Definition: xcom_base.cc:5812
mode
Definition: file_handle.h:59
#define STR(s)
Definition: rest_metadata_cache_plugin.cc:141

◆ EXTENSION_SET_STRING

#define EXTENSION_SET_STRING (   OPTS,
  X,
  STR 
)
Value:
do { \
if ((OPTS)->extension) \
my_free((OPTS)->extension->X); \
(OPTS)->extension->X = \
((STR) != nullptr) \
: NULL; \
} while (0)
#define MY_WME
Definition: my_sys.h:117
PSI_memory_key key_memory_mysql_options
Definition: client.cc:152
#define STR(s)
Definition: rest_metadata_cache_plugin.cc:141
char * my_strdup(PSI_memory_key key, const char *from, myf_t flags)
Definition: my_malloc.cc:294
#define MYF(v)
#define NULL
Definition: types.h:54
#define ALLOCATE_EXTENSIONS(OPTS)
Definition: client_extensions_macros.h:33

◆ SET_OPTION

#define SET_OPTION (   opt_var,
  arg 
)
Value:
do { \
if (mysql->options.opt_var) my_free(mysql->options.opt_var); \
mysql->options.opt_var = \
} while (0)
#define MY_WME
Definition: my_sys.h:117
PSI_memory_key key_memory_mysql_options
Definition: client.cc:152
char * my_strdup(PSI_memory_key key, const char *from, myf_t flags)
Definition: my_malloc.cc:294
void my_free(void *ptr)
Frees the memory pointed by the ptr.
Definition: my_memory.cc:81
static const Query_options options
Definition: sql_show_processlist.cc:65
#define MYF(v)
while(-- *argc > 0 &&*(pos= *(++*argv))=='-')
Definition: do_ctype.cc:83
#define NULL
Definition: types.h:54
static MYSQL mysql
Definition: mysql.cc:152
struct st_mysql_options options
Definition: mysql.h:316

Variable Documentation

◆ key_memory_mysql_options

PSI_memory_key key_memory_mysql_options