~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/info_schema.h

  • Committer: Monty Taylor
  • Date: 2010-03-11 18:27:20 UTC
  • mfrom: (1333 staging)
  • mto: This revision was merged to the branch mainline in revision 1348.
  • Revision ID: mordred@inaugust.com-20100311182720-hd1h87y6cb1b1mp0
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems
5
 
 *
6
 
 *  Authors:
7
 
 *
8
 
 *  Jay Pipes <joinfu@sun.com>
9
 
 *
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.
14
 
 *
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.
19
 
 *
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
23
 
 */
24
 
 
25
 
/**
26
 
 * @file
27
 
 *
28
 
 * Defines the INFORMATION_SCHEMA views exposing information about the
29
 
 * transaction log.
30
 
 */
31
 
 
32
 
#ifndef PLUGIN_TRANSACTION_LOG_INFO_SCHEMA_H
33
 
#define PLUGIN_TRANSACTION_LOG_INFO_SCHEMA_H
34
 
 
35
 
#include <drizzled/plugin/info_schema_table.h>
36
 
 
37
 
#include <vector>
38
 
 
39
 
class TransactionLogViewISMethods : public drizzled::plugin::InfoSchemaMethods
40
 
{
41
 
public:
42
 
  virtual int fillTable(drizzled::Session *session,
43
 
                        drizzled::Table *table,
44
 
                        drizzled::plugin::InfoSchemaTable *schema_table);
45
 
};
46
 
 
47
 
class TransactionLogEntriesViewISMethods : public drizzled::plugin::InfoSchemaMethods
48
 
{
49
 
public:
50
 
  virtual int fillTable(drizzled::Session *session,
51
 
                        drizzled::Table *table,
52
 
                        drizzled::plugin::InfoSchemaTable *schema_table);
53
 
};
54
 
 
55
 
class TransactionLogTransactionsViewISMethods : public drizzled::plugin::InfoSchemaMethods
56
 
{
57
 
public:
58
 
  virtual int fillTable(drizzled::Session *session,
59
 
                        drizzled::Table *table,
60
 
                        drizzled::plugin::InfoSchemaTable *schema_table);
61
 
};
62
 
 
63
 
/**
64
 
 * Populate the vectors of columns for each I_S table.
65
 
 *
66
 
 * @return false on success; true on failure.
67
 
 */
68
 
bool initViewColumns();
69
 
 
70
 
/**
71
 
 * Clears the vectors of columns for each I_S table.
72
 
 */
73
 
void cleanupViewColumns();
74
 
 
75
 
/**
76
 
 * Initialize the methods for each I_S table.
77
 
 *
78
 
 * @return false on success; true on failure
79
 
 */
80
 
bool initViewMethods();
81
 
 
82
 
/**
83
 
 * Delete memory allocated for the I_S table methods.
84
 
 */
85
 
void cleanupViewMethods();
86
 
 
87
 
/**
88
 
 * Initialize the I_S tables related to the transaction log.
89
 
 *
90
 
 * @return false on success; true on failure
91
 
 */
92
 
bool initViews();
93
 
 
94
 
/**
95
 
 * Delete memory allocated for the I_S tables.
96
 
 */
97
 
void cleanupViews();
98
 
#endif /* PLUGIN_TRANSACTION_LOG_INFO_SCHEMA_H */