Skip to content

Commit 0858281

Browse files
authored
CMN-1256: As Debora I want to be able to parse sequences (#131)
1 parent 98f6447 commit 0858281

File tree

5 files changed

+214
-1
lines changed

5 files changed

+214
-1
lines changed

crates/definitions/src/data.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
9292
T!("bulk"),
9393
T!("by"),
9494
T!("byte"),
95+
T!("cache"),
9596
T!("call"),
9697
T!("cascade"),
9798
T!("case"),
@@ -123,6 +124,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
123124
T!("cube"),
124125
T!("current_user"),
125126
T!("cursor"),
127+
T!("cycle"),
126128
T!("data"),
127129
T!("database"),
128130
T!("date"),
@@ -158,6 +160,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
158160
T!("exceptions"),
159161
T!("execute"),
160162
T!("exists"),
163+
T!("extend"),
161164
T!("extended"),
162165
T!("external"),
163166
T!("final"),
@@ -171,6 +174,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
171174
T!("from"),
172175
T!("full"),
173176
T!("function"),
177+
T!("global"),
174178
T!("grant"),
175179
T!("group"),
176180
T!("grouping"),
@@ -182,6 +186,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
182186
T!("ilike", "ilike", "comparison_op"),
183187
T!("immediate"),
184188
T!("in"),
189+
T!("increment"),
185190
T!("index"),
186191
T!("indicator"),
187192
T!("initially"),
@@ -196,6 +201,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
196201
T!("invisible"),
197202
T!("is"),
198203
T!("java"),
204+
T!("keep"),
199205
T!("join"),
200206
T!("key"),
201207
T!("language"),
@@ -212,8 +218,10 @@ pub const TOKENS: Tokens<'_> = Tokens {
212218
T!("long"),
213219
T!("map"),
214220
T!("maxlen"),
221+
T!("maxvalue"),
215222
T!("member"),
216223
T!("metadata"),
224+
T!("minvalue"),
217225
T!("mle"),
218226
T!("module"),
219227
T!("month"),
@@ -225,13 +233,21 @@ pub const TOKENS: Tokens<'_> = Tokens {
225233
T!("new"),
226234
T!("no"),
227235
T!("noaudit"),
236+
T!("nocache"),
228237
T!("nocopy"),
229238
T!("nocycle"),
239+
T!("noextend"),
240+
T!("nokeep"),
241+
T!("nomaxvalue"),
242+
T!("nominvalue"),
230243
T!("none"),
231244
T!("noneditionable"),
232245
T!("nonschema"),
246+
T!("noorder"),
233247
T!("noprecheck"),
234248
T!("norely"),
249+
T!("noscale"),
250+
T!("noshard"),
235251
T!("not"),
236252
T!("novalidate"),
237253
T!("nowait"),
@@ -298,19 +314,24 @@ pub const TOKENS: Tokens<'_> = Tokens {
298314
T!("row"),
299315
T!("rowid"),
300316
T!("rowtype"),
317+
T!("scale"),
301318
T!("schema"),
302319
T!("scope"),
303320
T!("second"),
304321
T!("select"),
305322
T!("self"),
323+
T!("sequence"),
306324
T!("servererror"),
325+
T!("session"),
307326
T!("set"),
308327
T!("sets"),
328+
T!("shard"),
309329
T!("sharing"),
310330
T!("shutdown"),
311331
T!("siblings"),
312332
T!("signature"),
313333
T!("smallint"),
334+
T!("start"),
314335
T!("starts"),
315336
T!("startup"),
316337
T!("static"),
@@ -468,6 +489,8 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
468489
S!("select_stmt", "A node that marks a full SELECT statement"),
469490
S!("semicolon", "A semi colon"),
470491
S!("set_clause", "A node containing a SET clause in an UPDATE statement"),
492+
S!("sequence_parameters", "A node containing the parameters for sequences"),
493+
S!("sequence_stmt", "A node containing a CREATE SEQUENCE statement"),
471494
S!("sharing_clause", "A node containing a SHARING clause"),
472495
S!("simple_case_expression", "A node containing a simple case expression"),
473496
S!("slash", "Slash char `/`"),

0 commit comments

Comments
 (0)