~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

  • Committer: Lee Bieber
  • Date: 2010-10-27 18:28:56 UTC
  • mfrom: (1883.1.3 build)
  • Revision ID: kalebral@gmail.com-20101027182856-q3wqtbv1t4egkjsk
Merge Andrew - fix bug 667360: --defaults-file not processed before paths read           
Merge Andrew - fix bug 656577: Importing SQL script results in silent failure    
Merge Andrew - fix bug 667053: drizzledump minor output cleanup needed

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
40
40
class Cursor;
41
41
 
42
42
namespace message { class Table; }
43
 
namespace identifier { class Table; }
 
43
class TableIdentifier;
44
44
 
45
 
int rm_table_part2(Session *session, TableList *tables, bool if_exists,
 
45
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
46
46
                         bool drop_temporary);
 
47
void write_bin_log_drop_table(Session *session,
 
48
                              bool if_exists, const char *db_name,
 
49
                              const char *table_name);
 
50
bool quick_rm_table(Session& session,
 
51
                    TableIdentifier &identifier);
47
52
void close_cached_table(Session *session, Table *table);
48
53
 
49
54
void wait_while_table_is_used(Session *session, Table *table,
50
55
                              enum ha_extra_function function);
51
56
 
52
 
bool check_table(Session* session, TableList* table_list,
53
 
                 HA_CHECK_OPT* check_opt);
54
 
bool analyze_table(Session* session, TableList* table_list,
55
 
                   HA_CHECK_OPT* check_opt);
56
 
bool optimize_table(Session* session, TableList* table_list,
57
 
                    HA_CHECK_OPT* check_opt);
 
57
bool mysql_check_table(Session* session, TableList* table_list,
 
58
                       HA_CHECK_OPT* check_opt);
 
59
bool mysql_analyze_table(Session* session, TableList* table_list,
 
60
                         HA_CHECK_OPT* check_opt);
 
61
bool mysql_optimize_table(Session* session, TableList* table_list,
 
62
                          HA_CHECK_OPT* check_opt);
58
63
 
59
 
void write_bin_log(Session *session, const std::string &query);
 
64
void write_bin_log(Session *session,
 
65
                   char const *query);
60
66
 
61
67
bool is_primary_key(KeyInfo *key_info);
62
68
const char* is_primary_key_name(const char* key_name);