21
21
#ifndef DRIZZLED_GENERATOR_TABLE_H
22
22
#define DRIZZLED_GENERATOR_TABLE_H
24
#include "drizzled/session.h"
25
#include "drizzled/plugin/storage_engine.h"
24
#include <drizzled/plugin/storage_engine.h>
27
26
namespace drizzled {
28
30
namespace generator {
33
message::table::shared_ptr table;
35
TableIdentifier::vector table_names;
36
TableIdentifier::vector::const_iterator table_iterator;
36
identifier::Table::vector table_names;
37
identifier::Table::vector::const_iterator table_iterator;
40
Table(Session &arg, const SchemaIdentifier &schema_identifier);
41
Table(Session &arg, const identifier::Schema &schema_identifier);
42
43
operator const drizzled::message::table::shared_ptr()
44
45
while (table_iterator != table_names.end())
47
bool is_table_parsed= plugin::StorageEngine::getTableDefinition(session, *table_iterator, table);
47
message::table::shared_ptr table;
48
table= plugin::StorageEngine::getTableMessage(session, *table_iterator);
54
55
return message::table::shared_ptr();
57
operator const drizzled::TableIdentifier*()
58
operator const drizzled::identifier::Table*()
59
60
while (table_iterator != table_names.end())
61
const drizzled::TableIdentifier *_ptr= &(*table_iterator);
62
const drizzled::identifier::Table *_ptr= &(*table_iterator);