~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Monty Taylor
  • Date: 2011-01-26 19:15:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2126.
  • Revision ID: mordred@inaugust.com-20110126191555-nq5nnzyscvngsip2
Turns on -fvisibility=hidden by default. Symbols intended to be used by
plugins need to be marked with DRIZZLED_API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
 
22
 
#pragma once
 
22
#ifndef DRIZZLED_SQL_BASE_H
 
23
#define DRIZZLED_SQL_BASE_H
23
24
 
24
25
#include <drizzled/table.h>
25
 
#include <drizzled/table_list.h>
26
26
#include <drizzled/table/concurrent.h>
27
27
 
28
 
#include <drizzled/visibility.h>
 
28
#include "drizzled/visibility.h"
29
29
 
30
 
namespace drizzled {
 
30
namespace drizzled
 
31
{
 
32
class TableShare;
 
33
class Name_resolution_context;
31
34
 
32
35
void table_cache_free(void);
33
36
bool table_cache_init(void);
47
50
                       Item *default_value, Item *on_update_value,
48
51
                       LEX_STRING *comment,
49
52
                       char *change, List<String> *interval_list,
50
 
                       const charset_info_st * const cs);
 
53
                       const CHARSET_INFO * const cs);
51
54
CreateField * new_create_field(Session *session, char *field_name, enum_field_types type,
52
55
                               char *length, char *decimals,
53
56
                               uint32_t type_modifier,
54
57
                               Item *default_value, Item *on_update_value,
55
58
                               LEX_STRING *comment, char *change,
56
 
                               List<String> *interval_list, charset_info_st *cs);
57
 
void push_new_name_resolution_context(Session&, TableList& left_op, TableList& right_op);
 
59
                               List<String> *interval_list, CHARSET_INFO *cs);
 
60
void store_position_for_column(const char *name);
 
61
bool push_new_name_resolution_context(Session *session,
 
62
                                      TableList *left_op,
 
63
                                      TableList *right_op);
58
64
void add_join_on(TableList *b,Item *expr);
59
65
void add_join_natural(TableList *a,TableList *b,List<String> *using_fields,
60
66
                      Select_Lex *lex);
95
101
                          enum_resolution_type *resolution);
96
102
bool insert_fields(Session *session, Name_resolution_context *context,
97
103
                   const char *db_name, const char *table_name,
98
 
                   List<Item>::iterator *it, bool any_privileges);
 
104
                   List_iterator<Item> *it, bool any_privileges);
99
105
bool setup_tables(Session *session, Name_resolution_context *context,
100
106
                  List<TableList> *from_clause, TableList *tables,
101
107
                  TableList **leaves, bool select_insert);
131
137
TableList *unique_table(TableList *table, TableList *table_list,
132
138
                        bool check_alias= false);
133
139
 
134
 
/* bits for last argument to table::Cache::removeTable() */
 
140
/* bits for last argument to table::Cache::singleton().removeTable() */
135
141
#define RTFC_NO_FLAG                0x0000
136
142
#define RTFC_OWNED_BY_Session_FLAG      0x0001
137
143
#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
149
155
                            db_name, table_name);
150
156
}
151
157
 
152
 
void drizzle_rm_tmp_tables();
153
 
 
154
158
} /* namespace drizzled */
155
159
 
 
160
#endif /* DRIZZLED_SQL_BASE_H */