~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/show_tables.h

  • Committer: Brian Aker
  • Date: 2010-03-24 01:04:05 UTC
  • mfrom: (1385.1.4 build)
  • Revision ID: brian@gaz-20100324010405-kz4otwzepf0wplnm
new code for show tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define PLUGIN_SCHEMA_DICTIONARY_SHOW_TABLES_H
23
23
 
24
24
 
25
 
class ShowTables : public TablesTool
 
25
class ShowTables : public drizzled::plugin::TableFunction
26
26
{
27
27
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();
 
28
  ShowTables();
 
29
 
 
30
  class Generator : public drizzled::plugin::TableFunction::Generator
 
31
  {
 
32
    bool is_primed;
 
33
    drizzled::message::Table table_message;
 
34
    std::set<std::string> table_names;
 
35
    std::set<std::string>::iterator table_iterator;
 
36
    std::string schema_name;
 
37
 
 
38
    void fill();
 
39
    bool next();
 
40
    bool nextCore();
47
41
 
48
42
  public:
49
 
    Generator(drizzled::Field **arg) :
50
 
      TablesTool::Generator(arg)
51
 
    { }
 
43
    Generator(drizzled::Field **arg);
 
44
 
 
45
    bool populate();
52
46
  };
53
47
 
54
48
  Generator *generator(drizzled::Field **arg)