~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

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
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
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
23
23
  Routines to drop, repair, optimize, analyze, and check a schema table
24
24
 
25
25
*/
26
 
#ifndef DRIZZLE_SERVER_SQL_TABLE_H
27
 
#define DRIZZLE_SERVER_SQL_TABLE_H
28
 
 
29
 
class Session;
30
 
class TableList;
31
 
typedef struct st_ha_check_opt HA_CHECK_OPT;
32
 
class Table;
33
 
typedef struct st_key_cache KEY_CACHE;
34
 
 
35
 
bool mysql_rm_table(Session *session,TableList *tables, bool if_exists,
36
 
                    bool drop_temporary);
37
 
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
38
 
                         bool drop_temporary, bool log_query);
39
 
bool quick_rm_table(handlerton *base,const char *db,
40
 
                    const char *table_name, uint32_t flags);
 
26
#pragma once
 
27
 
 
28
#include <drizzled/base.h>
 
29
 
 
30
namespace drizzled {
 
31
 
 
32
typedef struct st_ha_create_information HA_CREATE_INFO;
 
33
 
 
34
int rm_table_part2(Session *session, TableList *tables, bool if_exists,
 
35
                         bool drop_temporary);
41
36
void close_cached_table(Session *session, Table *table);
42
37
 
43
38
void wait_while_table_is_used(Session *session, Table *table,
44
39
                              enum ha_extra_function function);
45
 
bool mysql_checksum_table(Session* session, TableList* table_list,
46
 
                          HA_CHECK_OPT* check_opt);
47
 
bool mysql_check_table(Session* session, TableList* table_list,
48
 
                       HA_CHECK_OPT* check_opt);
49
 
bool mysql_repair_table(Session* session, TableList* table_list,
50
 
                        HA_CHECK_OPT* check_opt);
51
 
bool mysql_analyze_table(Session* session, TableList* table_list,
52
 
                         HA_CHECK_OPT* check_opt);
53
 
bool mysql_optimize_table(Session* session, TableList* table_list,
54
 
                          HA_CHECK_OPT* check_opt);
55
 
 
56
 
bool mysql_assign_to_keycache(Session* session, TableList* table_list,
57
 
                              LEX_STRING *key_cache_name);
58
 
bool mysql_preload_keys(Session* session, TableList* table_list);
59
 
int reassign_keycache_tables(Session* session, KEY_CACHE *src_cache,
60
 
                             KEY_CACHE *dst_cache);
61
 
void write_bin_log(Session *session, bool clear_error,
62
 
                   char const *query, ulong query_length);
63
 
 
64
 
bool is_primary_key(KEY *key_info);
65
 
const char* is_primary_key_name(const char* key_name);
66
 
 
67
 
#endif /* DRIZZLE_SERVER_SQL_TABLE_H */
 
40
 
 
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*);
 
47
void set_table_default_charset(HA_CREATE_INFO *create_info, const char *db);
 
48
} /* namespace drizzled */
 
49