25
25
using namespace drizzled;
27
27
ShowSchemas::ShowSchemas() :
28
show_dictionary::Show("SHOW_SCHEMAS")
28
plugin::TableFunction("DATA_DICTIONARY", "SHOW_SCHEMAS")
30
30
add_field("SCHEMA_NAME");
33
33
ShowSchemas::Generator::Generator(Field **arg) :
34
show_dictionary::Show::Generator(arg),
35
schema_generator(getSession())
34
plugin::TableFunction::Generator(arg),
35
is_schema_primed(false)
40
@note return true if a match occurs.
42
bool ShowSchemas::Generator::checkSchema()
44
if (isWild((*schema_iterator).getSchemaName()))
50
bool ShowSchemas::Generator::nextSchemaCore()
58
plugin::StorageEngine::getIdentifiers(getSession(), schema_names);
59
schema_iterator= schema_names.begin();
60
is_schema_primed= true;
63
if (schema_iterator == schema_names.end())
72
bool ShowSchemas::Generator::nextSchema()
74
while (not nextSchemaCore())
76
if (schema_iterator == schema_names.end())
39
84
bool ShowSchemas::Generator::populate()
41
drizzled::message::schema::shared_ptr schema_ptr;
43
if (not isShowQuery())
46
while ((schema_ptr= schema_generator))
48
if (isWild(schema_ptr->name()))
52
push(schema_ptr->name());
96
A lack of a parsed schema file means we are using defaults.
98
void ShowSchemas::Generator::fill()
101
push((*schema_iterator).getSchemaName());