22 #include <plugin/show_dictionary/dictionary.h>
25 using namespace drizzled;
27 ShowSchemas::ShowSchemas() :
28 show_dictionary::Show(
"SHOW_SCHEMAS")
30 add_field(
"SCHEMA_NAME");
33 ShowSchemas::Generator::Generator(
Field **arg) :
34 show_dictionary::Show::Generator(arg),
35 schema_generator(getSession())
39 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());