~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/schemas.h

LOCK_open to boost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef PLUGIN_SCHEMA_DICTIONARY_SCHEMAS_H
22
22
#define PLUGIN_SCHEMA_DICTIONARY_SCHEMAS_H
23
23
 
24
 
class SchemasTool : public DataDictionary
 
24
class SchemasTool : public drizzled::plugin::TableFunction
25
25
{
26
26
public:
27
27
 
28
28
  SchemasTool();
29
29
 
30
 
  class Generator : public DataDictionary::Generator 
 
30
  SchemasTool(const char *schema_arg, const char *table_arg) :
 
31
    drizzled::plugin::TableFunction(schema_arg, table_arg)
 
32
  { }
 
33
 
 
34
  SchemasTool(const char *table_arg) :
 
35
    drizzled::plugin::TableFunction("DATA_DICTIONARY", table_arg)
 
36
  { }
 
37
 
 
38
  class Generator : public drizzled::plugin::TableFunction::Generator 
31
39
  {
 
40
    drizzled::message::Schema schema;
 
41
 
32
42
    drizzled::generator::Schema schema_generator;
33
43
 
 
44
    virtual void fill();
 
45
 
34
46
  public:
35
47
    Generator(drizzled::Field **arg);
36
48
 
 
49
    const std::string &schema_name()
 
50
    {
 
51
      return schema.name();
 
52
    }
 
53
 
37
54
    bool populate();
 
55
    bool nextSchema();
 
56
    bool isSchemaPrimed()
 
57
    {
 
58
      return true;
 
59
    }
38
60
  };
39
61
 
40
62
  Generator *generator(drizzled::Field **arg)