23 #include <drizzled/identifier.h>
24 #include <drizzled/message/catalog.h>
25 #include <uuid/uuid.h>
27 #include <boost/make_shared.hpp>
34 shared_ptr make_shared(
const identifier::Catalog &identifier)
36 shared_ptr message= boost::make_shared< value_type>();
37 assert(not identifier.getName().empty());
38 message->set_name(identifier.getName());
40 message->set_creation_timestamp(time(NULL));
41 message->set_update_timestamp(time(NULL));
42 message->mutable_engine()->set_name(
"default");
47 uuid_generate_random(uu);
48 uuid_unparse(uu, uuid_string);
49 message->set_uuid(uuid_string, 36);
51 message->set_version(1);