~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/open_tables_state.h

  • Committer: Brian Aker
  • Date: 2011-01-05 16:29:27 UTC
  • mto: (2060.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2063.
  • Revision ID: brian@tangent.org-20110105162927-fi2gnmlz35qcagik
Add additional gperf for non-reserved SQL keywords.

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
53
50
  */
54
51
private:
55
52
  Table *temporary_tables;
56
 
 
57
53
public:
58
54
 
59
55
  Table *getTemporaryTables()
74
70
 
75
71
protected:
76
72
  void close_temporary_tables();
77
 
 
78
73
public:
79
74
  void close_temporary_table(Table *table);
80
 
  
81
 
private:
82
75
  // The method below just handles the de-allocation of the table. In
83
76
  // a better memory type world, this would not be needed.
 
77
private:
84
78
  void nukeTable(Table *table);
 
79
public:
85
80
 
86
 
public:
87
81
  /* Work with temporary tables */
88
 
  Table *find_temporary_table(const identifier::Table &identifier);
 
82
  Table *find_temporary_table(const TableIdentifier &identifier);
89
83
 
90
84
  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,
 
85
  int drop_temporary_table(const drizzled::TableIdentifier &identifier);
 
86
  bool rm_temporary_table(plugin::StorageEngine *base, const TableIdentifier &identifier);
 
87
  bool rm_temporary_table(const drizzled::TableIdentifier &identifier, bool best_effort= false);
 
88
  Table *open_temporary_table(const drizzled::TableIdentifier &identifier,
95
89
                              bool link_in_list= true);
96
90
 
97
91
  virtual query_id_t getQueryId()  const= 0;
158
152
  virtual ~Open_tables_state() {}
159
153
 
160
154
  void doGetTableNames(CachedDirectory &directory,
161
 
                       const identifier::Schema &schema_identifier,
 
155
                       const SchemaIdentifier &schema_identifier,
162
156
                       std::set<std::string>& set_of_names);
163
 
  void doGetTableNames(const identifier::Schema &schema_identifier,
 
157
  void doGetTableNames(const SchemaIdentifier &schema_identifier,
164
158
                       std::set<std::string>& set_of_names);
165
159
 
166
160
  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);
 
161
                             const SchemaIdentifier &schema_identifier,
 
162
                             TableIdentifier::vector &set_of_identifiers);
 
163
  void doGetTableIdentifiers(const SchemaIdentifier &schema_identifier,
 
164
                             TableIdentifier::vector &set_of_identifiers);
171
165
 
172
 
  int doGetTableDefinition(const drizzled::identifier::Table &identifier,
 
166
  int doGetTableDefinition(const drizzled::TableIdentifier &identifier,
173
167
                           message::Table &table_proto);
174
 
  bool doDoesTableExist(const drizzled::identifier::Table &identifier);
 
168
  bool doDoesTableExist(const drizzled::TableIdentifier &identifier);
175
169
 
176
170
 
177
171
  Open_tables_state(uint64_t version_arg);