1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2010 Joseph Daly <skinny.moey@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef PLUGIN_INNOBASE_HANDLER_DATA_DICTIONARY_H
22
#define PLUGIN_INNOBASE_HANDLER_DATA_DICTIONARY_H
24
#include "drizzled/plugin/table_function.h"
25
#include "drizzled/field.h"
27
class CmpTool : public drizzled::plugin::TableFunction
33
class Generator : public drizzled::plugin::TableFunction::Generator
36
Generator(drizzled::Field **arg, bool outer_reset);
40
uint32_t record_number;
44
Generator *generator(drizzled::Field **arg)
46
return new Generator(arg, outer_reset);
52
class CmpmemTool : public drizzled::plugin::TableFunction
56
CmpmemTool(bool reset);
58
class Generator : public drizzled::plugin::TableFunction::Generator
61
Generator(drizzled::Field **arg, bool outer_reset);
67
uint32_t record_number;
71
Generator *generator(drizzled::Field **arg)
73
return new Generator(arg, outer_reset);
79
class InnodbTrxTool : public drizzled::plugin::TableFunction
83
InnodbTrxTool(const char* in_table_name);
85
class Generator : public drizzled::plugin::TableFunction::Generator
88
Generator(drizzled::Field **arg, const char* in_table_name);
94
void populate_innodb_trx();
95
void populate_innodb_locks();
96
void populate_innodb_lock_waits();
99
uint32_t record_number;
100
uint32_t number_rows;
101
const char* table_name;
104
Generator *generator(drizzled::Field **arg)
106
return new Generator(arg, table_name);
109
const char* table_name;
112
#endif /* PLUGIN_INNOBASE_HANDLER_DATA_DICTIONARY_H */