~stewart/drizzle/embedded-innodb-rnd-read

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/schemas.h

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:09:42 UTC
  • mfrom: (1310.1.38)
  • Revision ID: stewart@flamingspork.com-20100330130942-859uivdm20p36sk3
Merged embedded-innodb-write-row into embedded-innodb-rnd-read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  { }
33
33
 
34
34
  SchemasTool(const char *table_arg) :
35
 
    drizzled::plugin::TableFunction("data_dictionary", table_arg)
 
35
    drizzled::plugin::TableFunction("DATA_DICTIONARY", table_arg)
36
36
  { }
37
37
 
38
38
  class Generator : public drizzled::plugin::TableFunction::Generator 
40
40
    drizzled::message::Schema schema;
41
41
    std::set<std::string> schema_names;
42
42
    std::set<std::string>::const_iterator schema_iterator;
43
 
    std::string schema_predicate;
44
43
    bool is_schema_primed;
45
44
    bool is_schema_parsed;
46
45
 
53
52
    const std::string &schema_name()
54
53
    {
55
54
      assert(is_schema_primed);
56
 
      return is_schema_parsed ? schema.name() : (*schema_iterator);
57
 
    }
58
 
 
59
 
    void setSchemaPredicate(const std::string &arg)
60
 
    {
61
 
      schema_predicate= arg;
 
55
      return schema.name();
62
56
    }
63
57
 
64
58
    bool populate();