~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Tim Penhey
  • Date: 2010-01-20 02:39:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1275.
  • Revision ID: tim.penhey@canonical.com-20100120023901-8teeunid6gwlthzx
Add in a rot 13 function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_SQL_BASE_H
21
21
#define DRIZZLED_SQL_BASE_H
22
22
 
 
23
#include <stdint.h>
23
24
#include <drizzled/table.h>
24
25
 
25
 
namespace drizzled
26
 
{
27
26
class TableShare;
28
27
class Name_resolution_context;
29
28
 
30
29
void table_cache_free(void);
31
30
bool table_cache_init(void);
 
31
void assign_new_table_id(TableShare *share);
32
32
uint32_t cached_open_tables(void);
33
33
uint32_t cached_table_definitions(void);
34
 
HASH *get_open_cache();
35
34
 
36
35
void kill_drizzle(void);
37
36
 
129
128
                               const char *table_name);
130
129
TableList *unique_table(TableList *table, TableList *table_list,
131
130
                        bool check_alias= false);
132
 
void remove_db_from_cache(SchemaIdentifier &schema_identifier);
 
131
void remove_db_from_cache(const char *db);
133
132
 
134
133
/* bits for last argument to remove_table_from_cache() */
135
134
#define RTFC_NO_FLAG                0x0000
143
142
 
144
143
bool fill_record(Session* session, List<Item> &fields, List<Item> &values, bool ignore_errors= false);
145
144
bool fill_record(Session *session, Field **field, List<Item> &values, bool ignore_errors= false);
 
145
bool list_open_tables(const char *db,
 
146
                      const char *wild,
 
147
                      bool(*func)(Table *table,
 
148
                                  open_table_list_st& open_list,
 
149
                                  drizzled::plugin::InfoSchemaTable *schema_table),
 
150
                      Table *display,
 
151
                      drizzled::plugin::InfoSchemaTable *schema_table);
 
152
 
146
153
inline TableList *find_table_in_global_list(TableList *table,
147
154
                                             const char *db_name,
148
155
                                             const char *table_name)
150
157
  return find_table_in_list(table, &TableList::next_global,
151
158
                            db_name, table_name);
152
159
}
153
 
 
154
 
} /* namespace drizzled */
155
 
 
156
160
#endif /* DRIZZLED_SQL_BASE_H */