1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9#ifndef SQL_TOKENS_H
10#define SQL_TOKENS_H
11
12typedef enum tokens {
13 // Please keep this list sorted for ease of maintenance
14 SQL_AGGR,
15 SQL_ALTER_SEQ,
16 SQL_ALTER_TABLE,
17 SQL_ALTER_USER,
18 SQL_ANALYZE,
19 SQL_AND,
20 SQL_ASSIGN,
21 SQL_ATOM,
22 SQL_BETWEEN,
23 SQL_BINCOPYFROM,
24 SQL_BINOP,
25 SQL_CACHE,
26 SQL_CALL,
27 SQL_CASE,
28 SQL_CAST,
29 SQL_CHARSET,
30 SQL_CHECK,
31 SQL_COALESCE,
32 SQL_COLUMN,
33 SQL_COLUMN_OPTIONS,
34 SQL_COMMENT,
35 SQL_COMPARE,
36 SQL_CONSTRAINT,
37 SQL_COPYFROM,
38 SQL_COPYLOADER,
39 SQL_COPYTO,
40 SQL_CREATE_FUNC,
41 SQL_CREATE_INDEX,
42 SQL_CREATE_ROLE,
43 SQL_CREATE_SCHEMA,
44 SQL_CREATE_SEQ,
45 SQL_CREATE_TABLE,
46 SQL_CREATE_TABLE_LOADER,
47 SQL_CREATE_TRIGGER,
48 SQL_CREATE_TYPE,
49 SQL_CREATE_USER,
50 SQL_CREATE_VIEW,
51 SQL_CROSS,
52 SQL_CURRENT_ROW,
53 SQL_CYCLE,
54 SQL_DECLARE,
55 SQL_DECLARE_TABLE,
56 SQL_DEFAULT,
57 SQL_DELETE,
58 SQL_DROP_COLUMN,
59 SQL_DROP_CONSTRAINT,
60 SQL_DROP_DEFAULT,
61 SQL_DROP_FUNC,
62 SQL_DROP_INDEX,
63 SQL_DROP_ROLE,
64 SQL_DROP_SCHEMA,
65 SQL_DROP_SEQ,
66 SQL_DROP_TABLE,
67 SQL_DROP_TRIGGER,
68 SQL_DROP_TYPE,
69 SQL_DROP_USER,
70 SQL_DROP_VIEW,
71 SQL_ELSE,
72 SQL_ESCAPE,
73 SQL_EXCEPT,
74 SQL_EXECUTE,
75 SQL_EXISTS,
76 SQL_FILTER,
77 SQL_FOLLOWING,
78 SQL_FOREIGN_KEY,
79 SQL_FRAME,
80 SQL_FROM,
81 SQL_FUNC,
82 SQL_GRANT,
83 SQL_GRANT_ROLES,
84 SQL_GROUPBY,
85 SQL_IDENT,
86 SQL_IF,
87 SQL_IN,
88 SQL_INC,
89 SQL_INDEX,
90 SQL_INSERT,
91 SQL_INTERSECT,
92 SQL_IS_NOT_NULL,
93 SQL_IS_NULL,
94 SQL_JOIN,
95 SQL_LIKE,
96 SQL_MAXVALUE,
97 SQL_MERGE,
98 SQL_MERGE_MATCH,
99 SQL_MERGE_NO_MATCH,
100 SQL_MERGE_PARTITION,
101 SQL_MINVALUE,
102 SQL_MULSTMT,
103 SQL_NAME,
104 SQL_NEXT,
105 SQL_NOP,
106 SQL_NOT,
107 SQL_NOT_BETWEEN,
108 SQL_NOT_EXISTS,
109 SQL_NOT_IN,
110 SQL_NOT_LIKE,
111 SQL_NOT_NULL,
112 SQL_NULL,
113 SQL_NULLIF,
114 SQL_OP,
115 SQL_OR,
116 SQL_ORDERBY,
117 SQL_PARAMETER,
118 SQL_PARTITION_COLUMN,
119 SQL_PARTITION_EXPRESSION,
120 SQL_PARTITION_LIST,
121 SQL_PARTITION_RANGE,
122 SQL_PATH,
123 SQL_PRECEDING,
124 SQL_PREP,
125 SQL_PRIMARY_KEY,
126 SQL_PW_ENCRYPTED,
127 SQL_PW_UNENCRYPTED,
128 SQL_RANK,
129 SQL_RENAME_COLUMN,
130 SQL_RENAME_SCHEMA,
131 SQL_RENAME_TABLE,
132 SQL_RENAME_USER,
133 SQL_RETURN,
134 SQL_REVOKE,
135 SQL_REVOKE_ROLES,
136 SQL_ROUTINE,
137 SQL_SAMPLE,
138 SQL_SCHEMA,
139 SQL_SELECT,
140 SQL_SEQUENCE,
141 SQL_SET,
142 SQL_SET_TABLE_SCHEMA,
143 SQL_START,
144 SQL_STORAGE,
145 SQL_TABLE,
146 SQL_TRUNCATE,
147 SQL_TYPE,
148 SQL_UNION,
149 SQL_UNIONJOIN,
150 SQL_UNIQUE,
151 SQL_UNOP,
152 SQL_UPDATE,
153 SQL_USING,
154 SQL_VALUES,
155 SQL_VIEW,
156 SQL_WHEN,
157 SQL_WHILE,
158 SQL_WINDOW,
159 SQL_WITH,
160 SQL_XMLATTRIBUTE,
161 SQL_XMLCOMMENT,
162 SQL_XMLCONCAT,
163 SQL_XMLDOCUMENT,
164 SQL_XMLELEMENT,
165 SQL_XMLFOREST,
166 SQL_XMLPARSE,
167 SQL_XMLPI,
168 SQL_XMLTEXT,
169 TR_COMMIT,
170 TR_MODE,
171 TR_RELEASE,
172 TR_ROLLBACK,
173 TR_SAVEPOINT,
174 TR_START
175 // Please keep this list sorted for ease of maintenance
176} tokens;
177
178typedef enum jt {
179 jt_inner = 0,
180 jt_left = 1,
181 jt_right = 2,
182 jt_full = 3,
183 jt_union = 4
184} jt;
185
186#endif
187