~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-10 09:27:50 UTC
  • mto: (2430.1.6 rf)
  • mto: This revision was merged to the branch mainline in revision 2436.
  • Revision ID: olafvdspek@gmail.com-20111010092750-ryxgmn7zj5yvxfkf
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
  Routines to drop, repair, optimize, analyze, and check a schema table
24
24
 
25
25
*/
26
 
#ifndef DRIZZLED_SQL_TABLE_H
27
 
#define DRIZZLED_SQL_TABLE_H
28
 
 
29
 
#include "drizzled/base.h"
30
 
 
31
 
namespace drizzled
32
 
{
33
 
 
34
 
class Session;
35
 
class TableList;
36
 
typedef struct st_ha_check_opt HA_CHECK_OPT;
37
 
class Table;
 
26
#pragma once
 
27
 
 
28
#include <drizzled/base.h>
 
29
 
 
30
namespace drizzled {
 
31
 
38
32
typedef struct st_ha_create_information HA_CREATE_INFO;
39
 
class AlterInfo;
40
 
class Cursor;
41
 
 
42
 
namespace message { class Table; }
43
 
class TableIdentifier;
44
 
 
45
 
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
 
33
 
 
34
int rm_table_part2(Session *session, TableList *tables, bool if_exists,
46
35
                         bool drop_temporary);
47
36
void close_cached_table(Session *session, Table *table);
48
37
 
49
38
void wait_while_table_is_used(Session *session, Table *table,
50
39
                              enum ha_extra_function function);
51
40
 
52
 
bool mysql_check_table(Session* session, TableList* table_list,
53
 
                       HA_CHECK_OPT* check_opt);
54
 
bool mysql_analyze_table(Session* session, TableList* table_list,
55
 
                         HA_CHECK_OPT* check_opt);
56
 
bool mysql_optimize_table(Session* session, TableList* table_list,
57
 
                          HA_CHECK_OPT* check_opt);
58
 
 
59
 
void write_bin_log(Session *session, const std::string &query);
60
 
 
61
 
bool is_primary_key(KeyInfo *key_info);
62
 
const char* is_primary_key_name(const char* key_name);
63
 
bool check_engine(Session *, const char *, message::Table *, HA_CREATE_INFO *);
 
41
bool check_table(Session* session, TableList* table_list);
 
42
bool analyze_table(Session* session, TableList* table_list);
 
43
bool optimize_table(Session* session, TableList* table_list);
 
44
 
 
45
bool is_primary_key(const char* name);
 
46
bool check_engine(Session*, const char*, message::Table*, HA_CREATE_INFO*);
64
47
void set_table_default_charset(HA_CREATE_INFO *create_info, const char *db);
65
48
} /* namespace drizzled */
66
49
 
67
 
#endif /* DRIZZLED_SQL_TABLE_H */