Drizzled Public API Documentation

event.h
Go to the documentation of this file.
00001 /* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002  *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
00003  *
00004  *  Copyright 2011 Daniel Nichter
00005  *
00006  *  This program is free software: you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation, either version 3 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 #pragma once
00021 
00043 struct event_t {
00044   // GMT timestamps (2002-01-31T10:00:01.123456)
00045   std::string ts;
00046 
00047   // integers
00048   uint32_t session_id;
00049   uint32_t query_id;
00050   uint32_t rows_examined;
00051   uint32_t rows_sent;
00052   uint32_t tmp_tables;
00053   uint32_t warnings;
00054 
00055   // times (42.123456)
00056   double execution_time;
00057   double lock_time;
00058   double session_time;
00059 
00060   // bools ("true" or "false")
00061   const char *error;
00062 
00063   // strings, not quoted or escaped
00064   const char *schema;
00065 
00066   // query, not quoted or escaped
00067   const char *query;
00068 };