116
114
int doCommit(Session *, bool);
117
115
int doRollback(Session *, bool);
118
116
Cursor *create(Table& table);
119
bool doDropSchema(const drizzled::identifier::Schema&);
117
bool doDropSchema(const drizzled::SchemaIdentifier&);
122
120
* Indicates to a storage engine the start of a
140
int doCreateTable(Session&, Table&, const identifier::Table& ident, drizzled::message::Table& );
141
int doDropTable(Session &, const identifier::Table& );
138
int doCreateTable(Session&, Table&, const TableIdentifier& ident, drizzled::message::Table& );
139
int doDropTable(Session &, const TableIdentifier& );
143
int doRenameTable(Session&, const identifier::Table &from, const identifier::Table &to);
141
int doRenameTable(Session&, const TableIdentifier &from, const TableIdentifier &to);
145
143
void doGetTableIdentifiers(drizzled::CachedDirectory &dir,
146
const drizzled::identifier::Schema &schema,
147
drizzled::identifier::Table::vector &set_of_identifiers)
144
const drizzled::SchemaIdentifier &schema,
145
drizzled::TableIdentifier::vector &set_of_identifiers)
149
147
std::set<std::string> set_of_names;
151
149
doGetTableNames(dir, schema, set_of_names);
152
150
for (std::set<std::string>::iterator set_iter = set_of_names.begin(); set_iter != set_of_names.end(); ++set_iter)
154
set_of_identifiers.push_back(identifier::Table(schema, *set_iter));
152
set_of_identifiers.push_back(TableIdentifier(schema, *set_iter));
158
156
void doGetTableNames(CachedDirectory&,
159
const identifier::Schema &schema,
157
const SchemaIdentifier &schema,
160
158
std::set<std::string> &set_of_names)
162
160
bool isPBMS = schema.compare("PBMS");
170
168
int doReleaseSavepoint(Session *session, NamedSavepoint &savepoint);
171
169
const char **bas_ext() const;
173
int doGetTableDefinition(Session&, const identifier::Table &identifier,
171
int doGetTableDefinition(Session&, const TableIdentifier &identifier,
174
172
drizzled::message::Table &table_proto)
191
bool doDoesTableExist(Session&, const identifier::Table &identifier)
189
bool doDoesTableExist(Session&, const TableIdentifier &identifier)
193
191
const char *tab_name = identifier.getTableName().c_str();
194
192
const char *db_name = identifier.getSchemaName().c_str();
1047
1045
#ifdef DRIZZLED
1048
int PBMSStorageEngine::doCreateTable(Session&, Table&, const identifier::Table& , drizzled::message::Table& )
1046
int PBMSStorageEngine::doCreateTable(Session&, Table&, const TableIdentifier& , drizzled::message::Table& )
1050
1048
/* You cannot create PBMS tables. */
1051
1049
return( HA_ERR_WRONG_COMMAND );
1054
int PBMSStorageEngine::doDropTable(Session &, const identifier::Table& )
1052
int PBMSStorageEngine::doDropTable(Session &, const TableIdentifier& )
1056
1054
/* You cannot delete PBMS tables. */
1060
int PBMSStorageEngine::doRenameTable(Session&, const identifier::Table &, const identifier::Table &)
1058
int PBMSStorageEngine::doRenameTable(Session&, const TableIdentifier &, const TableIdentifier &)
1062
1060
/* You cannot rename PBMS tables. */
1063
1061
return( HA_ERR_WRONG_COMMAND );