~drizzle-pbxt/drizzle/drizzle-pbxt-2

« back to all changes in this revision

Viewing changes to drizzled/handler_structs.h

  • Committer: Paul McCullagh
  • Date: 2009-11-10 14:18:39 UTC
  • mfrom: (1038.1.7 drizzle-pbxt-pre-merge)
  • Revision ID: paul.mccullagh@primebase.org-20091110141839-2j3k43b17ag6f605
Merged Drizzle trunk and PBXT 1.0.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <drizzled/lex_string.h>
30
30
 
31
31
class Ha_trx_info;
32
 
struct StorageEngine;
33
32
struct st_key;
34
33
typedef struct st_key KEY;
35
34
struct st_key_cache;
36
35
typedef struct st_key_cache KEY_CACHE;
37
36
 
 
37
namespace drizzled
 
38
{
 
39
namespace plugin
 
40
{
 
41
class StorageEngine;
 
42
}
 
43
}
 
44
 
38
45
struct Session_TRANS
39
46
{
40
47
  Session_TRANS() {};
76
83
  void reset() { no_2pc= false; modified_non_trans_table= false; }
77
84
};
78
85
 
79
 
typedef struct {
80
 
  uint64_t data_file_length;
81
 
  uint64_t max_data_file_length;
82
 
  uint64_t index_file_length;
83
 
  uint64_t delete_length;
84
 
  ha_rows records;
85
 
  uint32_t mean_rec_length;
86
 
  time_t create_time;
87
 
  time_t check_time;
88
 
  time_t update_time;
89
 
  uint64_t check_sum;
90
 
} PARTITION_INFO;
91
 
 
92
86
typedef struct st_ha_create_information
93
87
{
94
88
  const CHARSET_INFO *table_charset, *default_table_charset;
95
 
  LEX_STRING connect_string;
96
 
  LEX_STRING comment;
97
 
  const char *data_file_name, *index_file_name;
98
89
  const char *alias;
99
 
  uint64_t max_rows,min_rows;
100
90
  uint64_t auto_increment_value;
101
91
  uint32_t table_options;
102
 
  uint32_t avg_row_length;
103
92
  uint32_t used_fields;
104
93
  uint32_t key_block_size;
105
 
  uint32_t block_size;
106
94
  enum row_type row_type;
107
 
  StorageEngine *db_type;
108
 
  uint32_t null_bits;                       /* NULL bits at start of record */
 
95
  drizzled::plugin::StorageEngine *db_type;
109
96
  uint32_t options;                         /* OR of HA_CREATE_ options */
110
 
  uint32_t extra_size;                      /* length of extra data segment */
111
97
  bool table_existed;                   /* 1 in create if table existed */
112
 
  bool varchar;                         /* 1 if table has a VARCHAR */
113
 
  enum ha_choice page_checksum;         /* If we have page_checksums */
114
98
} HA_CREATE_INFO;
115
99
 
116
100
typedef struct st_ha_alter_information
129
113
{
130
114
  enum ha_key_alg algorithm;
131
115
  uint32_t block_size;
132
 
  LEX_STRING parser_name;
133
116
  LEX_STRING comment;
134
117
} KEY_CREATE_INFO;
135
118
 
137
120
typedef struct st_ha_check_opt
138
121
{
139
122
  st_ha_check_opt() {}                        /* Remove gcc warning */
 
123
 
140
124
  uint32_t flags;       /* myisam layer flags (e.g. for myisamchk) */
 
125
 
141
126
  /* Just rebuild based on the defintion of the table */
142
127
  bool use_frm;
 
128
 
143
129
  /* new key cache when changing key cache */
144
130
  KEY_CACHE *key_cache;
145
 
  void init();
 
131
 
 
132
  void init()
 
133
  {
 
134
    flags= 0; 
 
135
    use_frm= false;
 
136
  };
146
137
} HA_CHECK_OPT;
147
138
 
148
139