MySQL 9.1.0
Source Code Documentation
ddl_rewriter_plugin.cc File Reference
#include <string>
#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 "my_inttypes.h"
#include "my_psi_config.h"
#include "my_thread.h"
#include "plugin/ddl_rewriter/ddl_rewriter.h"
#include "template_utils.h"

Functions

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

Variables

static PSI_memory_key key_memory_ddl_rewriter
 
static PSI_memory_info all_rewrite_memory []
 
static struct st_mysql_audit ddl_rewriter_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_ddl()

static int rewrite_ddl ( 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_ddl_rewriter, "ddl_rewriter", 0, 0, PSI_DOCUMENT_ME}}
#define PSI_DOCUMENT_ME
Definition: component_common.h:29
static PSI_memory_key key_memory_ddl_rewriter
Definition: ddl_rewriter_plugin.cc:40

◆ ddl_rewriter_descriptor

struct st_mysql_audit ddl_rewriter_descriptor
static
Initial value:
= {
nullptr,
{
0,
0,
(unsigned long)MYSQL_AUDIT_PARSE_ALL,
}
}
static int rewrite_ddl(MYSQL_THD, mysql_event_class_t event_class, const void *event)
Definition: ddl_rewriter_plugin.cc:56
#define MYSQL_AUDIT_INTERFACE_VERSION
Definition: plugin_audit.h:43
#define MYSQL_AUDIT_PARSE_ALL
Definition: plugin_audit.h:202

◆ key_memory_ddl_rewriter

PSI_memory_key key_memory_ddl_rewriter
static

◆ mysql_declare_plugin_end

mysql_declare_plugin_end