21
21
#ifndef PLUGIN_DATA_ENGINE_TABLES_H
22
22
#define PLUGIN_DATA_ENGINE_TABLES_H
24
class TablesTool : public Tool
24
class TablesTool : public SchemasTool
29
30
TablesTool(const char *arg) :
33
class Generator : public Tool::Generator
34
class Generator : public SchemasTool::Generator
35
std::set<std::string> schema_names;
36
drizzled::message::Table table_proto;
36
37
std::set<std::string> table_names;
37
std::set<std::string>::iterator schema_iterator;
38
38
std::set<std::string>::iterator table_iterator;
39
uint32_t schema_counter;
39
bool is_tables_primed;
44
const std::string &schema_name()
46
return (*schema_iterator);
45
Generator(Field **arg);
49
47
const std::string &table_name()
51
49
return (*table_iterator);
52
const drizzled::message::Table& getTableProto()
59
return is_tables_primed;
54
62
bool populate(Field ** fields);
55
virtual bool fill(Field ** fields);
58
Generator *generator()
65
class TablesNameTool : public TablesTool
71
class Generator : public TablesTool::Generator
76
TablesTool::Generator()
79
bool fill(Field ** fields);
82
Generator *generator()
88
class TablesInfoTool : public TablesTool
94
class Generator : public TablesTool::Generator
98
TablesTool::Generator()
101
bool fill(Field ** fields);
104
Generator *generator()
106
return new Generator;
66
Generator *generator(Field **arg)
68
return new Generator(arg);
110
73
#endif // PLUGIN_DATA_ENGINE_TABLES_H