~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Monty Taylor
  • Date: 2010-06-26 03:52:47 UTC
  • mfrom: (1637.1.5 staging)
  • Revision ID: mordred@inaugust.com-20100626035247-i0iq4sd6wqzfisyy
Merged in staging changes: Mark's syslog patch and vijay's program_options.

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
{
36
31
bool table_cache_init(void);
37
32
uint32_t cached_open_tables(void);
38
33
uint32_t cached_table_definitions(void);
39
 
 
40
 
table::Cache &get_open_cache();
41
 
 
42
 
DRIZZLED_API void kill_drizzle(void);
 
34
HASH *get_open_cache();
 
35
 
 
36
void kill_drizzle(void);
43
37
 
44
38
/* sql_base.cc */
45
39
void set_item_name(Item *item,char *pos,uint32_t length);
57
51
                               Item *default_value, Item *on_update_value,
58
52
                               LEX_STRING *comment, char *change,
59
53
                               List<String> *interval_list, CHARSET_INFO *cs);
 
54
void store_position_for_column(const char *name);
60
55
bool push_new_name_resolution_context(Session *session,
61
56
                                      TableList *left_op,
62
57
                                      TableList *right_op);
135
130
                               const char *table_name);
136
131
TableList *unique_table(TableList *table, TableList *table_list,
137
132
                        bool check_alias= false);
 
133
void remove_db_from_cache(SchemaIdentifier &schema_identifier);
138
134
 
139
 
/* bits for last argument to table::Cache::singleton().removeTable() */
 
135
/* bits for last argument to remove_table_from_cache() */
140
136
#define RTFC_NO_FLAG                0x0000
141
137
#define RTFC_OWNED_BY_Session_FLAG      0x0001
142
138
#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
143
139
#define RTFC_CHECK_KILLED_FLAG      0x0004
 
140
bool remove_table_from_cache(Session *session, TableIdentifier &identifier, uint32_t flags);
144
141
 
145
142
void mem_alloc_error(size_t size);
146
143