~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler_structs.h

  • Committer: Brian Aker
  • Date: 2010-10-08 16:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1834.
  • Revision ID: brian@tangent.org-20101008161147-o3us2a8itszsaycx
Typdef our lock type.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
namespace drizzled
41
41
{
42
42
 
43
 
struct st_key;
44
 
typedef struct st_key KEY;
45
 
typedef struct st_key_cache KEY_CACHE;
46
 
 
47
 
 
48
43
namespace plugin
49
44
{
50
45
class StorageEngine;
57
52
  uint64_t auto_increment_value;
58
53
  uint32_t table_options;
59
54
  uint32_t used_fields;
60
 
  enum row_type row_type;
61
55
  plugin::StorageEngine *db_type;
62
56
  bool table_existed;                   /* 1 in create if table existed */
 
57
 
 
58
  st_ha_create_information() :
 
59
    table_charset(0),
 
60
    default_table_charset(0),
 
61
    alias(0),
 
62
    auto_increment_value(0),
 
63
    table_options(0),
 
64
    used_fields(0),
 
65
    db_type(0),
 
66
    table_existed(0)
 
67
  { }
63
68
} HA_CREATE_INFO;
64
69
 
65
70
typedef struct st_ha_alter_information
66
71
{
67
 
  KEY  *key_info_buffer;
 
72
  KeyInfo  *key_info_buffer;
68
73
  uint32_t key_count;
69
74
  uint32_t index_drop_count;
70
75
  uint32_t *index_drop_buffer;
71
76
  uint32_t index_add_count;
72
77
  uint32_t *index_add_buffer;
73
78
  void *data;
 
79
 
 
80
  st_ha_alter_information() :
 
81
    key_info_buffer(0),
 
82
    key_count(0),
 
83
    index_drop_count(0),
 
84
    index_drop_buffer(0),
 
85
    index_add_count(0),
 
86
    index_add_buffer(0),
 
87
    data(0)
 
88
  { }
 
89
 
74
90
} HA_ALTER_INFO;
75
91
 
76
92
 
120
136
  uint32_t (*next) (range_seq_t seq, KEY_MULTI_RANGE *range);
121
137
} RANGE_SEQ_IF;
122
138
 
123
 
/*
124
 
  This is a buffer area that the handler can use to store rows.
125
 
  'end_of_used_area' should be kept updated after calls to
126
 
  read-functions so that other parts of the code can use the
127
 
  remaining area (until next read calls is issued).
128
 
*/
129
 
 
130
 
typedef struct st_handler_buffer
131
 
{
132
 
  unsigned char *buffer;         /* Buffer one can start using */
133
 
  unsigned char *buffer_end;     /* End of buffer */
134
 
  unsigned char *end_of_used_area;     /* End of area that was used by handler */
135
 
} HANDLER_BUFFER;
136
 
 
137
139
} /* namespace drizzled */
138
140
 
139
141
#endif /* DRIZZLED_HANDLER_STRUCTS_H */