2
* Copyright (C) 2011 Daniel Nichter
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 2 of the License.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
* Defines the event_t struct that encapsulates an event.
28
* An event (i.e. a query) has the attributes defined in the event_t struct.
29
* The values come from various members of the Session class. This is
30
* a necessary redundancy for two reasons. First, access to this data via
31
* the Session class is not uniform; it requires various calls and
32
* calculations. Look at QueryLog::afterStatement() to see this. Second,
33
* because the QueryLog object controls the logger classes, i.e.
34
* QueryLoggerFile and others in the futre, event creation and filtering
35
* is done in one place (QueryLog::afterStatement()) and then acceptable
36
* events are passed to the logger classes so that all they have to do is log.
38
* Since this is just a collection of variables, making this a class
39
* with accessor functions is overkill.
42
// GMT timestamps (2002-01-31T10:00:01.123456)
48
uint32_t rows_examined;
54
double execution_time;
58
// bools ("true" or "false")
61
// strings, not quoted or escaped
64
// query, not quoted or escaped