drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
alter_info.h
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Copyright (C) 2009 Sun Microsystems, Inc.
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
24
25
#pragma once
26
27
#include <drizzled/alter_column.h>
28
#include <drizzled/base.h>
29
#include <drizzled/enum.h>
30
#include <drizzled/key.h>
31
#include <drizzled/message/table.pb.h>
32
33
#include <bitset>
34
#include <list>
35
36
#include <boost/noncopyable.hpp>
37
38
namespace
drizzled
{
39
40
enum
enum_alter_info_flags
41
{
42
ALTER_ADD_COLUMN= 0,
43
ALTER_DROP_COLUMN,
44
ALTER_CHANGE_COLUMN,
45
ALTER_COLUMN_STORAGE,
46
ALTER_COLUMN_FORMAT,
47
ALTER_COLUMN_ORDER,
48
ALTER_ADD_INDEX,
49
ALTER_DROP_INDEX,
50
ALTER_RENAME,
51
ALTER_ORDER,
52
ALTER_OPTIONS,
53
ALTER_COLUMN_DEFAULT,
54
ALTER_KEYS_ONOFF,
55
ALTER_STORAGE,
56
ALTER_ROW_FORMAT,
57
ALTER_CONVERT,
58
ALTER_FORCE,
59
ALTER_RECREATE,
60
ALTER_TABLE_REORG,
61
ALTER_FOREIGN_KEY,
62
ALTER_RENAME_INDEX
63
};
64
71
class
AlterInfo : boost::noncopyable
72
{
73
public
:
74
typedef
std::list<AlterColumn> alter_list_t;
75
76
alter_list_t alter_list;
77
List<Key>
key_list;
78
List<CreateField>
create_list;
79
message::AddedFields added_fields_proto;
80
std::bitset<32> flags;
81
uint32_t no_parts;
82
bool
error_if_not_empty;
83
84
AlterInfo();
85
AlterInfo(
const
AlterInfo&,
memory::Root
*);
86
};
87
88
}
/* namespace drizzled */
drizzled::List
Definition
sql_list.h:332
drizzled::memory::Root
Definition
root.h:58
drizzled
TODO: Rename this file - func.h is stupid.
Definition
abort_exception.h:27
← Back to Drizzle docs
drizzled
alter_info.h
Generated by
1.15.0