MySQL 8.4.2
Source Code Documentation
event_tracking_stored_program_consumer_helper.h File Reference

Helper file to create stored_program event consumer. More...

Go to the source code of this file.

Classes

class  Event_tracking_implementation::Event_tracking_stored_program_implementation
 Implementation helper class for stored_program events. More...
 

Namespaces

namespace  Event_tracking_implementation
 

Macros

#define PROVIDES_SERVICE_EVENT_TRACKING_STORED_PROGRAM(component)    PROVIDES_SERVICE(component, event_tracking_stored_program)
  More...
 
#define IMPLEMENTS_SERVICE_EVENT_TRACKING_STORED_PROGRAM(component)
 

Detailed Description

Helper file to create stored_program event consumer.

Macro Definition Documentation

◆ IMPLEMENTS_SERVICE_EVENT_TRACKING_STORED_PROGRAM

#define IMPLEMENTS_SERVICE_EVENT_TRACKING_STORED_PROGRAM (   component)
Value:
BEGIN_SERVICE_IMPLEMENTATION(component, event_tracking_stored_program) \
Event_tracking_implementation:: \
Event_tracking_stored_program_implementation::notify \
END_SERVICE_IMPLEMENTATION()
#define BEGIN_SERVICE_IMPLEMENTATION(component, service)
Declares a Service Implementation.
Definition: service_implementation.h:62

◆ PROVIDES_SERVICE_EVENT_TRACKING_STORED_PROGRAM

#define PROVIDES_SERVICE_EVENT_TRACKING_STORED_PROGRAM (   component)     PROVIDES_SERVICE(component, event_tracking_stored_program)

#include "mysql/components/util/event_tracking_stored_program_consumer_helper.h"
// Replace following with union of subevents to be filtered
const mysql_event_tracking_stored_program_data *data [[maybe_unused]]) {
// Your code goes here
}
} // namespace Event_tracking_implementation
// Define init/deinit methods for component
// Component declaration related stuff
BEGIN_COMPONENT_PROVIDES(<component_name>)
// Rest of the component declaration code
static bool callback(const mysql_event_tracking_stored_program_data *data)
Callback function - To be implemented by component to handle an event.
static mysql_event_tracking_stored_program_subclass_t filtered_sub_events
Sub-events to be filtered/ignored - To be defined by the component.
Definition: event_tracking_stored_program_consumer_helper.h:86
#define END_COMPONENT_PROVIDES()
A macro to end the last declaration started with the BEGIN_COMPONENT_PROVIDES.
Definition: component_implementation.h:204
#define BEGIN_COMPONENT_PROVIDES(name)
Creates a service implementation list that are provided by specified component.
Definition: component_implementation.h:183
#define IMPLEMENTS_SERVICE_EVENT_TRACKING_STORED_PROGRAM(component)
Definition: event_tracking_stored_program_consumer_helper.h:75
#define PROVIDES_SERVICE_EVENT_TRACKING_STORED_PROGRAM(component)
Definition: event_tracking_stored_program_consumer_helper.h:72
unsigned long mysql_event_tracking_stored_program_subclass_t
Events for Stored program event tracking.
Definition: event_tracking_stored_program_defs.h:44
Definition: event_tracking_authentication_consumer_helper.h:81
Structure for Stored program event tracking.
Definition: event_tracking_stored_program_defs.h:51