~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/info_schema_methods.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-11-18 05:15:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1223.
  • Revision ID: osullivan.padraig@gmail.com-20091118051557-qw37xh1egsut1291
Extracted the status and variable related I_S tables into their own header
and implementation files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include "drizzled/plugin/info_schema_table.h"
25
25
 
 
26
bool show_status_array(Session *session, 
 
27
                       const char *wild,
 
28
                       SHOW_VAR *variables,
 
29
                       enum enum_var_type value_type,
 
30
                       struct system_status_var *status_var,
 
31
                       const char *prefix, Table *table,
 
32
                       bool ucase_names);
 
33
 
26
34
void store_key_column_usage(Table *table, 
27
35
                            LEX_STRING *db_name,
28
36
                            LEX_STRING *table_name, 
33
41
                            int64_t idx);
34
42
 
35
43
/**
36
 
 * @class StatusISMethods
37
 
 * @brief
38
 
 *   Class which implements any methods that the STATUS
39
 
 *   I_S table needs besides the default methods
40
 
 */
41
 
class StatusISMethods : public drizzled::plugin::InfoSchemaMethods
42
 
{
43
 
public:
44
 
  virtual int fillTable(Session *session, 
45
 
                        TableList *tables);
46
 
};
47
 
 
48
 
/**
49
 
 * @class VariablesISMethods
50
 
 * @brief
51
 
 *   Class which implements any methods that the VARIABLES
52
 
 *   I_S table needs besides the default methods
53
 
 */
54
 
class VariablesISMethods : public drizzled::plugin::InfoSchemaMethods
55
 
{
56
 
public:
57
 
  virtual int fillTable(Session *session, 
58
 
                        TableList *tables);
59
 
};
 
44
 * Iterate through the given vector of columns and delete the memory that
 
45
 * has been allocated for them.
 
46
 *
 
47
 * @param[out] cols vector to clear and de-allocate memory from
 
48
 */
 
49
void clearColumns(std::vector<const drizzled::plugin::ColumnInfo *>& cols);
60
50
 
61
51
#endif /* PLUGIN_INFO_SCHEMA_INFO_SCHEMA_METHODS_H */