~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/open_tables_state.h

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:16:49 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114051649-4kg0mdrgdtako8vp
add a FIXME to flesh out insert docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_OPEN_TABLES_STATE_H
22
22
#define DRIZZLED_OPEN_TABLES_STATE_H
23
23
 
24
 
#include <drizzled/lock.h>
25
 
#include <drizzled/query_id.h>
 
24
#include "drizzled/lock.h"
26
25
 
27
26
namespace drizzled
28
27
{
29
28
 
30
 
class CachedDirectory;
31
 
 
32
29
/**
33
30
  Class that holds information about tables which were opened and locked
34
31
  by the thread. It is also used to save/restore this information in
85
82
 
86
83
public:
87
84
  /* Work with temporary tables */
88
 
  Table *find_temporary_table(const identifier::Table &identifier);
 
85
  Table *find_temporary_table(const TableIdentifier &identifier);
89
86
 
90
87
  void dumpTemporaryTableNames(const char *id);
91
 
  int drop_temporary_table(const drizzled::identifier::Table &identifier);
92
 
  bool rm_temporary_table(plugin::StorageEngine *base, const identifier::Table &identifier);
93
 
  bool rm_temporary_table(const drizzled::identifier::Table &identifier, bool best_effort= false);
94
 
  Table *open_temporary_table(const drizzled::identifier::Table &identifier,
 
88
  int drop_temporary_table(const drizzled::TableIdentifier &identifier);
 
89
  bool rm_temporary_table(plugin::StorageEngine *base, const TableIdentifier &identifier);
 
90
  bool rm_temporary_table(const drizzled::TableIdentifier &identifier, bool best_effort= false);
 
91
  Table *open_temporary_table(const drizzled::TableIdentifier &identifier,
95
92
                              bool link_in_list= true);
96
93
 
97
94
  virtual query_id_t getQueryId()  const= 0;
158
155
  virtual ~Open_tables_state() {}
159
156
 
160
157
  void doGetTableNames(CachedDirectory &directory,
161
 
                       const identifier::Schema &schema_identifier,
 
158
                       const SchemaIdentifier &schema_identifier,
162
159
                       std::set<std::string>& set_of_names);
163
 
  void doGetTableNames(const identifier::Schema &schema_identifier,
 
160
  void doGetTableNames(const SchemaIdentifier &schema_identifier,
164
161
                       std::set<std::string>& set_of_names);
165
162
 
166
163
  void doGetTableIdentifiers(CachedDirectory &directory,
167
 
                             const identifier::Schema &schema_identifier,
168
 
                             identifier::Table::vector &set_of_identifiers);
169
 
  void doGetTableIdentifiers(const identifier::Schema &schema_identifier,
170
 
                             identifier::Table::vector &set_of_identifiers);
 
164
                             const SchemaIdentifier &schema_identifier,
 
165
                             TableIdentifier::vector &set_of_identifiers);
 
166
  void doGetTableIdentifiers(const SchemaIdentifier &schema_identifier,
 
167
                             TableIdentifier::vector &set_of_identifiers);
171
168
 
172
 
  int doGetTableDefinition(const drizzled::identifier::Table &identifier,
 
169
  int doGetTableDefinition(const drizzled::TableIdentifier &identifier,
173
170
                           message::Table &table_proto);
174
 
  bool doDoesTableExist(const drizzled::identifier::Table &identifier);
 
171
  bool doDoesTableExist(const drizzled::TableIdentifier &identifier);
175
172
 
176
173
 
177
174
  Open_tables_state(uint64_t version_arg);