MySQL 8.4.0
Source Code Documentation
s_mysql_mysql_audit_api_connection_with_error Struct Reference

A service to generate Audit API events of the connection class (MYSQL_AUDIT_CONNECTION_CLASS) with the explicitly specified error code value. More...

#include <audit_api_connection_service.h>

Public Attributes

int(* emit )(void *thd, mysql_event_connection_subclass_t type, int errcode)
 Method that emits event of the MYSQL_AUDIT_CONNECTION_CLASS class and the specified type with the explicitly specified error code value. More...
 

Detailed Description

A service to generate Audit API events of the connection class (MYSQL_AUDIT_CONNECTION_CLASS) with the explicitly specified error code value.

This service should ONLY be used if we cannot set the THD's Statement Diagnostic Area result code, which is passed along the audit notification chain. The preferred way of generating the event is to rely on THD's internal data as much as possible (mysql_audit_api_connection service)

The emit method generates the event in the synchronous way, causing all subscribers to receive it.

See also
mysql_audit_api_connection_imp

Member Data Documentation

◆ emit

int(* s_mysql_mysql_audit_api_connection_with_error::emit) (void *thd, mysql_event_connection_subclass_t type, int errcode)

Method that emits event of the MYSQL_AUDIT_CONNECTION_CLASS class and the specified type with the explicitly specified error code value.

See also
mysql_event_connection_subclass_t
Parameters
thdSession THD that generates connection event.
typeConnection event type.
errcodeError code that replaces Statement Diagnostic Area result value, which is simply bypassed by calling this method.
Returns
Plugin that receives Audit API event can return event processing value. The code that generates the event can take custom action based on the returned value. 0 value is returned if no action is required on the event generation side. `

The documentation for this struct was generated from the following file: