~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_info.h

  • Committer: Brian Aker
  • Date: 2009-10-15 00:22:33 UTC
  • mto: (1183.1.11 merge)
  • mto: This revision was merged to the branch mainline in revision 1198.
  • Revision ID: brian@gaz-20091015002233-fa4ao2mbc67wls91
First pass of information engine. OMG, ponies... is it so much easier to
deal with creating and engine.

The list table iterator though... its ass, needs to go. We should also
abstract out share. Very few engines need a custom one. Just say'in

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "drizzled/base.h"
29
29
#include "drizzled/enum.h"
30
30
#include "drizzled/sql_list.h" /** @TODO use STL vectors! */
31
 
#include "drizzled/key.h"
32
 
#include "drizzled/message/table.pb.h"
33
31
 
34
32
#include <bitset>
35
33
 
36
 
namespace drizzled
37
 
{
38
 
 
39
34
/* Some forward declarations needed */
40
35
class CreateField;
41
36
class AlterDrop;
42
37
class AlterColumn;
 
38
class Key;
43
39
 
44
40
enum enum_alter_info_flags
45
41
{
85
81
  List<AlterColumn> alter_list;
86
82
  List<Key> key_list;
87
83
  List<CreateField> create_list;
88
 
  message::AlterTable alter_proto;
89
84
  std::bitset<32> flags;
90
85
  enum enum_enable_or_disable keys_onoff;
91
86
  enum tablespace_op_type tablespace_op;
92
87
  uint32_t no_parts;
93
88
  enum ha_build_method build_method;
 
89
  CreateField *datetime_field;
94
90
  bool error_if_not_empty;
95
91
 
96
92
  AlterInfo();
97
 
  AlterInfo(const AlterInfo &rhs, memory::Root *mem_root);
 
93
  AlterInfo(const AlterInfo &rhs, MEM_ROOT *mem_root);
 
94
  void reset();
98
95
private:
99
96
  AlterInfo &operator=(const AlterInfo &rhs); // not implemented
100
97
  AlterInfo(const AlterInfo &rhs);            // not implemented
101
98
};
102
99
 
103
 
} /* namespace drizzled */
104
 
 
105
100
#endif /* DRIZZLED_ALTER_INFO_H */