21
21
#ifndef DRIZZLED_MESSAGE_H
22
22
#define DRIZZLED_MESSAGE_H
24
#include <drizzled/message/table.h>
25
#include <drizzled/message/schema.h>
27
#include <drizzled/message/transaction.pb.h>
28
#include <google/protobuf/text_format.h>
30
#include <drizzled/identifier.h>
32
#include <boost/shared_ptr.hpp>
24
#include "drizzled/message/table.pb.h"
25
#include "drizzled/message/schema.pb.h"
34
27
namespace drizzled {
35
28
namespace message {
30
void init(drizzled::message::Schema &arg, const std::string &name_arg);
31
void init(drizzled::message::Table &arg, const std::string &name_arg, const std::string &schema_arg, const std::string &engine_arg);
37
33
void update(drizzled::message::Schema &arg);
38
34
void update(drizzled::message::Table &arg);
40
bool is_numeric(const drizzled::message::Table::Field &type);
42
const std::string &type(const drizzled::message::Table::Field &type);
43
const std::string &type(drizzled::message::Table::Field::FieldType type);
44
const std::string &type(drizzled::message::Table::ForeignKeyConstraint::ForeignKeyOption type);
45
const std::string &type(bool type);
46
const std::string &type(drizzled::message::Table::Index::IndexType type);
47
const std::string &type(drizzled::message::Table::ForeignKeyConstraint::ForeignKeyMatchOption type);
48
const std::string &type(drizzled::message::Table::TableType type);
51
std::ostream& operator<<(std::ostream& output, const message::Transaction &message);
52
std::ostream& operator<<(std::ostream& output, const message::Table &message);
56
36
} /* namespace message */
57
37
} /* namespace drizzled */