~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/enum.h

Does not work (compile issue in plugin).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#pragma once
 
21
#ifndef DRIZZLED_ENUM_H
 
22
#define DRIZZLED_ENUM_H
22
23
 
23
24
namespace drizzled
24
25
{
25
26
 
26
27
/**
 
28
  Query type constants.
 
29
 
 
30
  QT_ORDINARY -- ordinary SQL query.
 
31
  QT_IS -- SQL query to be shown in INFORMATION_SCHEMA (in utf8 and without
 
32
  character set introducers).
 
33
 
 
34
  @TODO
 
35
 
 
36
  Move this out of here once Stew's done with UDF breakout.  The following headers need it:
 
37
 
 
38
    sql_lex.h --> included by session.h
 
39
    item.h
 
40
    table.h
 
41
    item_func.h
 
42
    item_subselect.h
 
43
    item_timefunc.h
 
44
    item_sum.h
 
45
    item_cmpfunc.h
 
46
    item_strfunc.h
 
47
*/
 
48
enum enum_query_type
 
49
{
 
50
  QT_ORDINARY,
 
51
  QT_IS
 
52
};
 
53
 
 
54
 
 
55
/**
27
56
 * @TODO Move to a separate header?
28
57
 *
29
58
 * It's needed by item.h and field.h, which are both inter-dependent
78
107
  OPT_GLOBAL
79
108
};
80
109
 
 
110
enum row_type
 
111
{
 
112
  ROW_TYPE_NOT_USED=-1,
 
113
  ROW_TYPE_DEFAULT,
 
114
  ROW_TYPE_FIXED,
 
115
  ROW_TYPE_DYNAMIC,
 
116
  ROW_TYPE_COMPRESSED,
 
117
  ROW_TYPE_REDUNDANT,
 
118
  ROW_TYPE_COMPACT,
 
119
  ROW_TYPE_PAGE
 
120
};
 
121
 
81
122
enum column_format_type
82
123
{
83
124
  COLUMN_FORMAT_TYPE_NOT_USED= -1,
143
184
  TABLE_CATEGORY_INFORMATION
144
185
};
145
186
 
 
187
enum enum_enable_or_disable
 
188
{
 
189
  LEAVE_AS_IS,
 
190
  ENABLE,
 
191
  DISABLE
 
192
};
 
193
 
 
194
 
146
195
enum enum_mark_columns
147
196
{
148
197
  MARK_COLUMNS_NONE,
165
214
  IGNORE_EXCEPT_NON_UNIQUE
166
215
};
167
216
 
 
217
enum tmp_table_type
 
218
{
 
219
  NO_TMP_TABLE,
 
220
  TEMP_TABLE,
 
221
  INTERNAL_TMP_TABLE,
 
222
  SYSTEM_TMP_TABLE
 
223
};
 
224
 
168
225
/*
169
226
  Values in this enum are used to indicate how a tables TIMESTAMP field
170
227
  should be treated. It can be set to the current timestamp on insert or
231
288
  SQLCOM_TRUNCATE,
232
289
  SQLCOM_DROP_TABLE,
233
290
  SQLCOM_DROP_INDEX,
 
291
  SQLCOM_SHOW_DATABASES,
 
292
  SQLCOM_SHOW_TABLES,
 
293
  SQLCOM_SHOW_FIELDS,
 
294
  SQLCOM_SHOW_KEYS,
 
295
  SQLCOM_SHOW_VARIABLES,
 
296
  SQLCOM_SHOW_STATUS,
 
297
  SQLCOM_SHOW_ENGINE_MUTEX,
 
298
  SQLCOM_SHOW_PROCESSLIST,
234
299
  SQLCOM_SHOW_CREATE,
235
300
  SQLCOM_SHOW_CREATE_DB,
 
301
  SQLCOM_SHOW_TABLE_STATUS,
236
302
  SQLCOM_LOAD,
237
303
  SQLCOM_SET_OPTION,
238
304
  SQLCOM_UNLOCK_TABLES,
272
338
  DUP_UPDATE
273
339
};
274
340
 
275
 
enum drizzle_exit_codes
276
 
{
277
 
  EXIT_UNSPECIFIED_ERROR = 1,
278
 
  EXIT_UNKNOWN_OPTION,
279
 
  EXIT_AMBIGUOUS_OPTION,
280
 
  EXIT_NO_ARGUMENT_ALLOWED,
281
 
  EXIT_ARGUMENT_REQUIRED,
282
 
  EXIT_VAR_PREFIX_NOT_UNIQUE,
283
 
  EXIT_UNKNOWN_VARIABLE,
284
 
  EXIT_OUT_OF_MEMORY,
285
 
  EXIT_UNKNOWN_SUFFIX,
286
 
  EXIT_NO_PTR_TO_VARIABLE,
287
 
  EXIT_CANNOT_CONNECT_TO_SERVICE,
288
 
  EXIT_OPTION_DISABLED,
289
 
  EXIT_ARGUMENT_INVALID
290
 
};
291
 
 
292
 
 
293
341
} /* namespace drizzled */
294
342
 
 
343
#endif /* DRIZZLED_ENUM_H */