~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_tables.h

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef PLUGIN_SCHEMA_DICTIONARY_SHOW_TABLES_H
22
 
#define PLUGIN_SCHEMA_DICTIONARY_SHOW_TABLES_H
23
 
 
24
 
 
25
 
class ShowTables : public TablesTool
 
21
#ifndef PLUGIN_SHOW_DICTIONARY_SHOW_TABLES_H
 
22
#define PLUGIN_SHOW_DICTIONARY_SHOW_TABLES_H
 
23
 
 
24
class ShowTables : public drizzled::plugin::TableFunction
26
25
{
27
26
public:
28
 
  ShowTables(const char *table_arg) :
29
 
    TablesTool(table_arg)
30
 
  { }
31
 
 
32
 
  ShowTables() :
33
 
    TablesTool("SHOW_TABLES")
34
 
  {
35
 
    add_field("TABLE_NAME");
36
 
  }
37
 
 
38
 
  class Generator : public TablesTool::Generator 
39
 
  {
40
 
    void fill()
41
 
    {
42
 
      /* TABLE_NAME */
43
 
      push(table_name());
44
 
    }
45
 
 
46
 
    bool checkSchema();
 
27
  ShowTables();
 
28
 
 
29
  class Generator : public drizzled::plugin::TableFunction::Generator
 
30
  {
 
31
    bool is_primed;
 
32
    drizzled::TableIdentifiers set_of_identifiers;
 
33
    drizzled::TableIdentifiers::iterator table_iterator;
 
34
    std::string schema_name;
 
35
 
 
36
    void fill();
 
37
    bool next();
 
38
    bool nextCore();
47
39
 
48
40
  public:
49
 
    Generator(drizzled::Field **arg) :
50
 
      TablesTool::Generator(arg)
51
 
    { }
 
41
    Generator(drizzled::Field **arg);
 
42
 
 
43
    bool populate();
52
44
  };
53
45
 
54
46
  Generator *generator(drizzled::Field **arg)
57
49
  }
58
50
};
59
51
 
60
 
#endif /* PLUGIN_SCHEMA_DICTIONARY_SHOW_TABLES_H */
 
52
#endif /* PLUGIN_SHOW_DICTIONARY_SHOW_TABLES_H */