1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2009 Sun Microsystems
8
* Jay Pipes <joinfu@sun.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
28
* Defines the INFORMATION_SCHEMA views exposing information about the
32
#ifndef PLUGIN_TRANSACTION_LOG_INFO_SCHEMA_H
33
#define PLUGIN_TRANSACTION_LOG_INFO_SCHEMA_H
35
#include <drizzled/plugin/info_schema_table.h>
39
class TransactionLogViewISMethods : public drizzled::plugin::InfoSchemaMethods
42
virtual int fillTable(drizzled::Session *session,
43
drizzled::Table *table,
44
drizzled::plugin::InfoSchemaTable *schema_table);
47
class TransactionLogEntriesViewISMethods : public drizzled::plugin::InfoSchemaMethods
50
virtual int fillTable(drizzled::Session *session,
51
drizzled::Table *table,
52
drizzled::plugin::InfoSchemaTable *schema_table);
55
class TransactionLogTransactionsViewISMethods : public drizzled::plugin::InfoSchemaMethods
58
virtual int fillTable(drizzled::Session *session,
59
drizzled::Table *table,
60
drizzled::plugin::InfoSchemaTable *schema_table);
64
* Populate the vectors of columns for each I_S table.
66
* @return false on success; true on failure.
68
bool initViewColumns();
71
* Clears the vectors of columns for each I_S table.
73
void cleanupViewColumns();
76
* Initialize the methods for each I_S table.
78
* @return false on success; true on failure
80
bool initViewMethods();
83
* Delete memory allocated for the I_S table methods.
85
void cleanupViewMethods();
88
* Initialize the I_S tables related to the transaction log.
90
* @return false on success; true on failure
95
* Delete memory allocated for the I_S tables.
98
#endif /* PLUGIN_TRANSACTION_LOG_INFO_SCHEMA_H */