MySQL 8.0.39
Source Code Documentation
|
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... | |
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.
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.
thd | Session THD that generates connection event. |
type | Connection event type. |
errcode | Error code that replaces Statement Diagnostic Area result value, which is simply bypassed by calling this method. |