MySQL  8.0.21
Source Code Documentation
rewrite_example.cc File Reference
#include <ctype.h>
#include <mysql/plugin.h>
#include <mysql/plugin_audit.h>
#include <mysql/psi/mysql_memory.h>
#include <mysql/service_mysql_alloc.h>
#include <string.h>
#include "my_inttypes.h"
#include "my_psi_config.h"
#include "my_thread.h"

Functions

static int plugin_init (MYSQL_PLUGIN)
 
static int rewrite_lower (MYSQL_THD, mysql_event_class_t event_class, const void *event)
 
 mysql_declare_plugin (audit_log)
 

Variables

static PSI_memory_key key_memory_rewrite_example
 
static PSI_memory_info all_rewrite_memory []
 
static struct st_mysql_audit rewrite_example_descriptor
 
 mysql_declare_plugin_end
 

Function Documentation

◆ mysql_declare_plugin()

mysql_declare_plugin ( audit_log  )

◆ plugin_init()

static int plugin_init ( MYSQL_PLUGIN  )
static

◆ rewrite_lower()

static int rewrite_lower ( MYSQL_THD  ,
mysql_event_class_t  event_class,
const void *  event 
)
static

Variable Documentation

◆ all_rewrite_memory

PSI_memory_info all_rewrite_memory[]
static
Initial value:
= {
{&key_memory_rewrite_example, "rewrite_example", 0, 0, PSI_DOCUMENT_ME}}
static PSI_memory_key key_memory_rewrite_example
Definition: rewrite_example.cc:36
#define PSI_DOCUMENT_ME
Definition: component_common.h:28

◆ key_memory_rewrite_example

PSI_memory_key key_memory_rewrite_example
static

◆ mysql_declare_plugin_end

mysql_declare_plugin_end

◆ rewrite_example_descriptor

struct st_mysql_audit rewrite_example_descriptor
static
Initial value:
= {
nullptr,
{
0,
0,
(unsigned long)MYSQL_AUDIT_PARSE_ALL,
}
}
static int rewrite_lower(MYSQL_THD, mysql_event_class_t event_class, const void *event)
Definition: rewrite_example.cc:54
#define MYSQL_AUDIT_PARSE_ALL
Definition: plugin_audit.h:199
#define MYSQL_AUDIT_INTERFACE_VERSION
Definition: plugin_audit.h:40