MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ndb_constants.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2004-2008 MySQL AB, 2009 Sun Microsystems, Inc.
3
All rights reserved. Use is subject to license terms.
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; version 2 of the License.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
32
#ifndef NDB_CONSTANTS_H
33
#define NDB_CONSTANTS_H
34
35
/*
36
* Data type constants.
37
*/
38
39
#define NDB_TYPE_UNDEFINED 0
40
41
#define NDB_TYPE_TINYINT 1
42
#define NDB_TYPE_TINYUNSIGNED 2
43
#define NDB_TYPE_SMALLINT 3
44
#define NDB_TYPE_SMALLUNSIGNED 4
45
#define NDB_TYPE_MEDIUMINT 5
46
#define NDB_TYPE_MEDIUMUNSIGNED 6
47
#define NDB_TYPE_INT 7
48
#define NDB_TYPE_UNSIGNED 8
49
#define NDB_TYPE_BIGINT 9
50
#define NDB_TYPE_BIGUNSIGNED 10
51
#define NDB_TYPE_FLOAT 11
52
#define NDB_TYPE_DOUBLE 12
53
#define NDB_TYPE_OLDDECIMAL 13
54
#define NDB_TYPE_CHAR 14
55
#define NDB_TYPE_VARCHAR 15
56
#define NDB_TYPE_BINARY 16
57
#define NDB_TYPE_VARBINARY 17
58
#define NDB_TYPE_DATETIME 18
59
#define NDB_TYPE_DATE 19
60
#define NDB_TYPE_BLOB 20
61
#define NDB_TYPE_TEXT 21
62
#define NDB_TYPE_BIT 22
63
#define NDB_TYPE_LONGVARCHAR 23
64
#define NDB_TYPE_LONGVARBINARY 24
65
#define NDB_TYPE_TIME 25
66
#define NDB_TYPE_YEAR 26
67
#define NDB_TYPE_TIMESTAMP 27
68
#define NDB_TYPE_OLDDECIMALUNSIGNED 28
69
#define NDB_TYPE_DECIMAL 29
70
#define NDB_TYPE_DECIMALUNSIGNED 30
71
72
#define NDB_TYPE_MAX 31
73
74
75
/*
76
* Attribute array type.
77
*/
78
79
#define NDB_ARRAYTYPE_FIXED 0
/* 0 length bytes */
80
#define NDB_ARRAYTYPE_SHORT_VAR 1
/* 1 length bytes */
81
#define NDB_ARRAYTYPE_MEDIUM_VAR 2
/* 2 length bytes */
82
#define NDB_ARRAYTYPE_NONE_VAR 3
/* 0 length bytes */
83
84
/*
85
* Attribute storage type.
86
*/
87
88
#define NDB_STORAGETYPE_MEMORY 0
89
#define NDB_STORAGETYPE_DISK 1
90
#define NDB_STORAGETYPE_DEFAULT 2
/* not set */
91
92
/*
93
* Table temporary status.
94
*/
95
#define NDB_TEMP_TAB_PERMANENT 0
96
#define NDB_TEMP_TAB_TEMPORARY 1
97
98
/*
99
* Table single user mode
100
*/
101
#define NDB_SUM_LOCKED 0
102
#define NDB_SUM_READONLY 1
103
#define NDB_SUM_READ_WRITE 2
104
108
#define NDB_NO_NODEGROUP 65536
109
110
/*
111
* SYSTAB_0 reserved keys
112
*/
113
#define NDB_BACKUP_SEQUENCE 0x1F000000
114
118
#define NDB_INDEX_STAT_DB "mysql"
119
#define NDB_INDEX_STAT_SCHEMA "def"
120
121
#define NDB_INDEX_STAT_HEAD_TABLE "ndb_index_stat_head"
122
#define NDB_INDEX_STAT_SAMPLE_TABLE "ndb_index_stat_sample"
123
#define NDB_INDEX_STAT_SAMPLE_INDEX1 "ndb_index_stat_sample_x1"
124
#define NDB_INDEX_STAT_HEAD_EVENT "ndb_index_stat_head_event"
125
126
#define NDB_INDEX_STAT_PREFIX "ndb_index_stat"
127
128
#endif
storage
ndb
include
ndb_constants.h
Generated on Sat Nov 9 2013 01:26:58 for MySQL 5.6.14 Source Code Document by
1.8.1.2