Drizzled Public API Documentation

event.h File Reference

Defines the event_t struct that encapsulates an event. More...

Go to the source code of this file.

Classes

struct  event_t
 

Detailed Description

Defines the event_t struct that encapsulates an event.

event.h

An event (i.e. a query) has the attributes defined in the event_t struct. The values come from various members of the Session class. This is a necessary redundancy for two reasons. First, access to this data via the Session class is not uniform; it requires various calls and calculations. Look at QueryLog::afterStatement() to see this. Second, because the QueryLog object controls the logger classes, i.e. QueryLoggerFile and others in the futre, event creation and filtering is done in one place (QueryLog::afterStatement()) and then acceptable events are passed to the logger classes so that all they have to do is log.

Since this is just a collection of variables, making this a class with accessor functions is overkill.

Definition in file event.h.