1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
7
* Jay Pipes <joinfu@sun.com>
8
* Joseph Daly <skinny.moey@gmail.com>
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
#ifndef PLUGIN_TRANSACTION_LOG_DATA_DICTIONARY_SCHEMA_H
26
#define PLUGIN_TRANSACTION_LOG_DATA_DICTIONARY_SCHEMA_H
30
#include "drizzled/plugin/table_function.h"
31
#include "drizzled/field.h"
33
#include "transaction_log.h"
35
class TransactionLogTool : public drizzled::plugin::TableFunction
41
class Generator : public drizzled::plugin::TableFunction::Generator
44
Generator(drizzled::Field **arg);
51
Generator *generator(drizzled::Field **arg)
53
return new Generator(arg);
57
class TransactionLogEntriesTool : public drizzled::plugin::TableFunction
61
TransactionLogEntriesTool();
63
class Generator : public drizzled::plugin::TableFunction::Generator
66
Generator(drizzled::Field **arg);
70
TransactionLog::Entries::iterator it;
71
TransactionLog::Entries::iterator end;
74
Generator *generator(drizzled::Field **arg)
76
return new Generator(arg);
80
class TransactionLogTransactionsTool : public drizzled::plugin::TableFunction
84
TransactionLogTransactionsTool();
86
class Generator : public drizzled::plugin::TableFunction::Generator
89
Generator(drizzled::Field **arg);
93
TransactionLog::TransactionEntries::iterator it;
94
TransactionLog::TransactionEntries::iterator end;
97
Generator *generator(drizzled::Field **arg)
99
return new Generator(arg);
103
#endif /* PLUGIN_TRANSACTION_LOG_DATA_DICTIONARY_H */