Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
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
namespace
drizzled {
37
38
enum
enum_alter_info_flags
39
{
40
ALTER_ADD_COLUMN= 0,
41
ALTER_DROP_COLUMN,
42
ALTER_CHANGE_COLUMN,
43
ALTER_COLUMN_STORAGE,
44
ALTER_COLUMN_FORMAT,
45
ALTER_COLUMN_ORDER,
46
ALTER_ADD_INDEX,
47
ALTER_DROP_INDEX,
48
ALTER_RENAME,
49
ALTER_ORDER,
50
ALTER_OPTIONS,
51
ALTER_COLUMN_DEFAULT,
52
ALTER_KEYS_ONOFF,
53
ALTER_STORAGE,
54
ALTER_ROW_FORMAT,
55
ALTER_CONVERT,
56
ALTER_FORCE,
57
ALTER_RECREATE,
58
ALTER_TABLE_REORG,
59
ALTER_FOREIGN_KEY
60
};
61
68
class
AlterInfo
: boost::noncopyable
69
{
70
public
:
71
typedef
std::list<AlterColumn> alter_list_t;
72
73
alter_list_t alter_list;
74
List<Key>
key_list;
75
List<CreateField>
create_list;
76
message::AddedFields
added_fields_proto;
77
std::bitset<32> flags;
78
uint32_t no_parts;
79
bool
error_if_not_empty;
80
81
AlterInfo
();
82
AlterInfo
(
const
AlterInfo
&,
memory::Root
*);
83
};
84
85
}
/* namespace drizzled */
86
drizzled
alter_info.h
Generated on Thu Aug 29 2013 10:00:19 for drizzle by
1.8.4