~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/info_schema_columns.h

Merged from myself one more time.

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
 
 *  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.
10
 
 *
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.
15
 
 *
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
19
 
 */
20
 
 
21
 
#ifndef PLUGIN_INFO_SCHEMA_INFO_SCHEMA_COLUMNS_H
22
 
#define PLUGIN_INFO_SCHEMA_INFO_SCHEMA_COLUMNS_H
23
 
 
24
 
#include "drizzled/plugin/info_schema_table.h"
25
 
 
26
 
#include <vector>
27
 
 
28
 
/**
29
 
 * Create the various columns for the CHARACTER_SET I_S table and add them
30
 
 * to the std::vector of columns for the CHARACTER_SET table.
31
 
 *
32
 
 * @param[out] cols vector to add columns to
33
 
 * @return false on success; true on failure
34
 
 */
35
 
bool createCharSetColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
36
 
 
37
 
/**
38
 
 * Create the various columns for the Collations I_S table and add them
39
 
 * to the std::vector of columns for the Collations table.
40
 
 *
41
 
 * @param[out] cols vector to add columns to
42
 
 * @return false on success; true on failure
43
 
 */
44
 
bool createCollationColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
45
 
 
46
 
/**
47
 
 * Create the various columns for the character set applicability
48
 
 * I_S table and add them to the std::vector of columns for the
49
 
 * table.
50
 
 *
51
 
 * @param[out] cols vector to add columns to
52
 
 * @return false on success; true on failure
53
 
 */
54
 
bool createCollCharSetColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
55
 
 
56
 
/**
57
 
 * Create the various columns for the COLUMNS
58
 
 * I_S table and add them to the std::vector of columns for the
59
 
 * table.
60
 
 *
61
 
 * @param[out] cols vector to add columns to
62
 
 * @return false on success; true on failure
63
 
 */
64
 
bool createColColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
65
 
 
66
 
/**
67
 
 * Create the various columns for the key column usage
68
 
 * I_S table and add them to the std::vector of columns for the
69
 
 * table.
70
 
 *
71
 
 * @param[out] cols vector to add columns to
72
 
 * @return false on success; true on failure
73
 
 */
74
 
bool createKeyColUsageColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
75
 
 
76
 
/**
77
 
 * Create the various columns for the OPEN_TABLES
78
 
 * I_S table and add them to the std::vector of columns for the
79
 
 * table.
80
 
 *
81
 
 * @param[out] cols vector to add columns to
82
 
 * @return false on success; true on failure
83
 
 */
84
 
bool createOpenTabColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
85
 
 
86
 
/**
87
 
 * Create the various columns for the PLUGINS
88
 
 * I_S table and add them to the std::vector of columns for the
89
 
 * table.
90
 
 *
91
 
 * @param[out] cols vector to add columns to
92
 
 * @return false on success; true on failure
93
 
 */
94
 
bool createPluginsColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
95
 
 
96
 
/**
97
 
 * Create the various columns for the MODULES
98
 
 * I_S table and add them to the std::vector of columns for the
99
 
 * table.
100
 
 *
101
 
 * @param[out] cols vector to add columns to
102
 
 * @return false on success; true on failure
103
 
 */
104
 
bool createModulesColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
105
 
 
106
 
/**
107
 
 * Create the various volumns for the PROCESSLIST I_S table and add them
108
 
 * to the std::vector of columns for the PROCESSLIST table.
109
 
 *
110
 
 * @param[out] cols vector to add columns to
111
 
 * @return false on success; true on failure
112
 
 */
113
 
bool createProcessListColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
114
 
 
115
 
/**
116
 
 * Create the various volumns for the REFERENTIAL_CONSTRAINTS I_S table 
117
 
 * and add them to the std::vector of columns for this table.
118
 
 *
119
 
 * @param[out] cols vector to add columns to
120
 
 * @return false on success; true on failure
121
 
 */
122
 
bool createRefConstraintColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
123
 
 
124
 
/**
125
 
 * Create the various volumns for the SCHEMATA I_S table 
126
 
 * and add them to the std::vector of columns for this table.
127
 
 *
128
 
 * @param[out] cols vector to add columns to
129
 
 * @return false on success; true on failure
130
 
 */
131
 
bool createSchemataColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
132
 
 
133
 
/**
134
 
 * Create the various volumns for the STATISTICS I_S table 
135
 
 * and add them to the std::vector of columns for this table.
136
 
 *
137
 
 * @param[out] cols vector to add columns to
138
 
 * @return false on success; true on failure
139
 
 */
140
 
bool createStatsColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
141
 
 
142
 
/**
143
 
 * Create the various volumns for numerous I_S tables 
144
 
 * and add them to the std::vector of columns for these table.
145
 
 *
146
 
 * @param[out] cols vector to add columns to
147
 
 * @return false on success; true on failure
148
 
 */
149
 
bool createStatusColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
150
 
 
151
 
/**
152
 
 * Create the various volumns for the TABLE_CONSTRAINTS I_S table 
153
 
 * and add them to the std::vector of columns for this table.
154
 
 *
155
 
 * @param[out] cols vector to add columns to
156
 
 * @return false on success; true on failure
157
 
 */
158
 
bool createTabConstraintsColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
159
 
 
160
 
/**
161
 
 * Create the various volumns for the TABLE_NAMES I_S table 
162
 
 * and add them to the std::vector of columns for this table.
163
 
 *
164
 
 * @param[out] cols vector to add columns to
165
 
 * @return false on success; true on failure
166
 
 */
167
 
bool createTablesColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
168
 
 
169
 
/**
170
 
 * Create the various volumns for the TABLE_NAMES I_S table 
171
 
 * and add them to the std::vector of columns for this table.
172
 
 *
173
 
 * @param[out] cols vector to add columns to
174
 
 * @return false on success; true on failure
175
 
 */
176
 
bool createTabNamesColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
177
 
 
178
 
/**
179
 
 * Iterate through the given vector of columns and delete the memory that
180
 
 * has been allocated for them.
181
 
 *
182
 
 * @param[out] cols vector to clear and de-allocate memory from
183
 
 */
184
 
void clearColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
185
 
 
186
 
#endif /* PLUGIN_INFO_SCHEMA_INFO_SCHEMA_COLUMNS_H */