~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Patrick Crews
  • Date: 2010-09-14 20:21:03 UTC
  • mto: (1771.1.1 pcrews)
  • mto: This revision was merged to the branch mainline in revision 1772.
  • Revision ID: gleebix@gmail.com-20100914202103-1db2n0bshzafep19
Moved transaction_log tests into updated non-publisher-based tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
 
21
 
 
22
20
#ifndef DRIZZLED_SQL_BASE_H
23
21
#define DRIZZLED_SQL_BASE_H
24
22
 
25
23
#include <drizzled/table.h>
26
 
#include <drizzled/table/concurrent.h>
27
 
 
28
 
#include "drizzled/visibility.h"
29
24
 
30
25
namespace drizzled
31
26
{
37
32
uint32_t cached_open_tables(void);
38
33
uint32_t cached_table_definitions(void);
39
34
 
40
 
table::Cache &get_open_cache();
41
 
 
42
 
DRIZZLED_API void kill_drizzle(void);
 
35
typedef boost::unordered_multimap< TableIdentifier::Key, Table *> TableOpenCache;
 
36
typedef std::pair< TableOpenCache::const_iterator, TableOpenCache::const_iterator > TableOpenCacheRange;
 
37
 
 
38
TableOpenCache &get_open_cache();
 
39
void remove_table(Table *arg);
 
40
 
 
41
void kill_drizzle(void);
43
42
 
44
43
/* sql_base.cc */
45
44
void set_item_name(Item *item,char *pos,uint32_t length);
57
56
                               Item *default_value, Item *on_update_value,
58
57
                               LEX_STRING *comment, char *change,
59
58
                               List<String> *interval_list, CHARSET_INFO *cs);
 
59
void store_position_for_column(const char *name);
60
60
bool push_new_name_resolution_context(Session *session,
61
61
                                      TableList *left_op,
62
62
                                      TableList *right_op);
135
135
                               const char *table_name);
136
136
TableList *unique_table(TableList *table, TableList *table_list,
137
137
                        bool check_alias= false);
 
138
void remove_db_from_cache(const SchemaIdentifier &schema_identifier);
138
139
 
139
 
/* bits for last argument to table::Cache::singleton().removeTable() */
 
140
/* bits for last argument to remove_table_from_cache() */
140
141
#define RTFC_NO_FLAG                0x0000
141
142
#define RTFC_OWNED_BY_Session_FLAG      0x0001
142
143
#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
143
144
#define RTFC_CHECK_KILLED_FLAG      0x0004
 
145
bool remove_table_from_cache(Session *session, TableIdentifier &identifier, uint32_t flags);
144
146
 
145
147
void mem_alloc_error(size_t size);
146
148