23 #include <plugin/catalog/module.h>
29 Catalogs::Catalogs() :
32 add_field(
"CATALOG_NAME", drizzled::plugin::TableFunction::STRING, MAXIMUM_IDENTIFIER_LENGTH,
false);
33 add_field(
"CATALOG_CREATION_TIME");
34 add_field(
"CATALOG_UPDATE_TIME");
35 add_field(
"CATALOG_UUID", drizzled::plugin::TableFunction::STRING, 36,
true);
36 add_field(
"CATALOG_VERSION", drizzled::plugin::TableFunction::NUMBER, 0,
true);
44 bool Catalogs::Generator::populate()
46 drizzled::message::catalog::shared_ptr tmp;
48 while ((tmp= catalog_generator))
54 time_t time_arg= tmp->creation_timestamp();
58 localtime_r(&time_arg, &tm_buffer);
59 strftime(buffer,
sizeof(buffer),
"%a %b %d %H:%M:%S %Y", &tm_buffer);
63 time_arg= tmp->update_timestamp();
64 localtime_r(&time_arg, &tm_buffer);
65 strftime(buffer,
sizeof(buffer),
"%a %b %d %H:%M:%S %Y", &tm_buffer);
TODO: Rename this file - func.h is stupid.