~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Brian Aker
  • Date: 2010-10-26 21:34:15 UTC
  • mto: (1887.2.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1888.
  • Revision ID: brian@tangent.org-20101026213415-666ezkzx542h8uf0
Adding cache.h for definition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define DRIZZLED_SQL_BASE_H
22
22
 
23
23
#include <drizzled/table.h>
 
24
#include <drizzled/table/concurrent.h>
24
25
 
25
26
namespace drizzled
26
27
{
31
32
bool table_cache_init(void);
32
33
uint32_t cached_open_tables(void);
33
34
uint32_t cached_table_definitions(void);
34
 
HASH *get_open_cache();
 
35
 
 
36
table::Cache &get_open_cache();
35
37
 
36
38
void kill_drizzle(void);
37
39
 
89
91
  RESOLVED_WITH_NO_ALIAS,
90
92
  RESOLVED_AGAINST_ALIAS
91
93
};
92
 
Item ** find_item_in_list(Item *item, List<Item> &items, uint32_t *counter,
 
94
Item ** find_item_in_list(Session *session,
 
95
                          Item *item, List<Item> &items, uint32_t *counter,
93
96
                          find_item_error_report_type report_error,
94
97
                          enum_resolution_type *resolution);
95
98
bool insert_fields(Session *session, Name_resolution_context *context,
129
132
                               const char *table_name);
130
133
TableList *unique_table(TableList *table, TableList *table_list,
131
134
                        bool check_alias= false);
132
 
void remove_db_from_cache(SchemaIdentifier &schema_identifier);
 
135
void remove_db_from_cache(const SchemaIdentifier &schema_identifier);
133
136
 
134
137
/* bits for last argument to remove_table_from_cache() */
135
138
#define RTFC_NO_FLAG                0x0000
136
139
#define RTFC_OWNED_BY_Session_FLAG      0x0001
137
140
#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
138
141
#define RTFC_CHECK_KILLED_FLAG      0x0004
139
 
bool remove_table_from_cache(Session *session, const char *db, const char *table,
140
 
                             uint32_t flags);
 
142
bool remove_table_from_cache(Session *session, TableIdentifier &identifier, uint32_t flags);
141
143
 
142
144
void mem_alloc_error(size_t size);
143
145