MySQL 9.3.0
Source Code Documentation
mysql_server_event_tracking_bridge_imp.cc File Reference

A bridge implementation that translates event tracking APIs to audit plugin APIs. More...

#include "mysql_server_event_tracking_bridge_imp.h"
#include "sql/command_mapping.h"
#include "sql/current_thd.h"
#include "sql/mysqld.h"
#include "sql/sql_audit.h"
#include "sql/sql_class.h"
#include "sql/sql_lex.h"
#include "sql/sql_plugin.h"
#include "sql/sql_rewrite.h"
#include "my_sys.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/plugin_audit.h"
#include <memory>

Namespaces

namespace  anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}
 

Macros

#define TO_LEXCSTRING(x)    { x.str, x.length }
 Macro to perform LEX_CSTRING transformation. More...
 

Functions

static bool anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::check_audit_mask (const unsigned long lhs, const unsigned long rhs)
 Check, whether masks specified by lhs parameter and rhs parameters overlap. More...
 
static int anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::plugins_dispatch (THD *thd, plugin_ref plugin, void *arg)
 Dispatches an event by invoking the plugin's event_notify method. More...
 
static bool anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::plugins_dispatch_bool (THD *thd, plugin_ref plugin, void *arg)
 
int anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::event_class_dispatch (THD *thd, mysql_event_class_t event_class, const void *event)
 Distributes an audit event to plug-ins. More...
 
static const CHARSET_INFOanonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::get_charset_from_thd (THD *thd)
 
const CHARSET_INFOanonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::thd_get_audit_query (THD *thd, LEX_CSTRING *query)
 Fill query info extracted from the thread object and return the thread object charset info. More...
 

Detailed Description

A bridge implementation that translates event tracking APIs to audit plugin APIs.

Macro Definition Documentation

◆ TO_LEXCSTRING

#define TO_LEXCSTRING (   x)     { x.str, x.length }

Macro to perform LEX_CSTRING transformation.