MySQL  8.0.19
Source Code Documentation
test_audit_api_message.cc File Reference
#include <ctype.h>
#include <m_string.h>
#include <my_compiler.h>
#include <mysql/components/component_implementation.h>
#include <mysql/components/service_implementation.h>
#include <mysql/components/services/audit_api_message_service.h>
#include <mysql/components/services/udf_registration.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <string>

Functions

 REQUIRES_SERVICE_PLACEHOLDER (udf_registration)
 
 REQUIRES_SERVICE_PLACEHOLDER (mysql_audit_api_message)
 
static long long message_internal (UDF_INIT *init, UDF_ARGS *args, unsigned char *null_value, unsigned char *error)
 Implements test_audit_api_message_internal UDF. More...
 
static long long message_user (UDF_INIT *init, UDF_ARGS *args, unsigned char *null_value, unsigned char *error)
 Implements test_audit_api_message_internal UDF. More...
 
static mysql_service_status_t init ()
 
static mysql_service_status_t deinit ()
 
 END_COMPONENT_PROVIDES ()
 
 REQUIRES_SERVICE (mysql_audit_api_message)
 
 REQUIRES_SERVICE (udf_registration)
 
 END_COMPONENT_REQUIRES ()
 
 METADATA ("mysql.author", "Oracle Corporation")
 
 METADATA ("mysql.license", "GPL")
 
 END_COMPONENT_METADATA ()
 

Variables

mysql_component_t mysql_component_test_audit_api_message
 

Function Documentation

◆ deinit()

static mysql_service_status_t deinit ( )
static

◆ END_COMPONENT_METADATA()

END_COMPONENT_METADATA ( )

◆ END_COMPONENT_PROVIDES()

END_COMPONENT_PROVIDES ( )

◆ END_COMPONENT_REQUIRES()

END_COMPONENT_REQUIRES ( )

◆ init()

static mysql_service_status_t init ( )
static

◆ message_internal()

static long long message_internal ( UDF_INIT init,
UDF_ARGS args,
unsigned char *  null_value,
unsigned char *  error 
)
static

Implements test_audit_api_message_internal UDF.

This function generates AUDIT_API_MESSAGE_INTERNAL event of the AUDIT_API_MESSAGE_CLASS class.

Although AUDIT_API_MESSAGE_INTERNAL message is generated as the result of the user interaction, this should not be done in the production environment. AUDIT_API_MESSAGE_INTERNAL message should be generated as as the result of the internal processing, such as background threads, timers etc.

Parameters
initUnused.
argsUnused.
null_valueUnused.
errorUnused.
Returns
Return values
0This function always returns 0.

◆ message_user()

static long long message_user ( UDF_INIT init,
UDF_ARGS args,
unsigned char *  null_value,
unsigned char *  error 
)
static

Implements test_audit_api_message_internal UDF.

This function generates AUDIT_API_MESSAGE_USER event of the AUDIT_API_MESSAGE_CLASS class.

Parameters
initUnused.
argsUnused.
null_valueUnused.
errorUnused.
Returns
Return values
0This function always returns 0.

◆ METADATA() [1/2]

METADATA ( "mysql.author"  ,
"Oracle Corporation"   
)

◆ METADATA() [2/2]

METADATA ( "mysql.license"  ,
"GPL"   
)

◆ REQUIRES_SERVICE() [1/2]

REQUIRES_SERVICE ( mysql_audit_api_message  )

◆ REQUIRES_SERVICE() [2/2]

REQUIRES_SERVICE ( udf_registration  )

◆ REQUIRES_SERVICE_PLACEHOLDER() [1/2]

REQUIRES_SERVICE_PLACEHOLDER ( mysql_audit_api_message  )

◆ REQUIRES_SERVICE_PLACEHOLDER() [2/2]

REQUIRES_SERVICE_PLACEHOLDER ( udf_registration  )

Variable Documentation

◆ mysql_component_test_audit_api_message

mysql_component_t mysql_component_test_audit_api_message
Initial value:
= { "test_audit_api_message" , __test_audit_api_message_provides, __test_audit_api_message_requires, __test_audit_api_message_metadata,
init
static mysql_service_status_t init()
Definition: test_audit_api_message.cc:106
deinit
static mysql_service_status_t deinit()
Definition: test_audit_api_message.cc:126