Skip to content

Commit 2dcb981

Browse files
authored
CMN-1248: As Debora I want to be able to use CTEs (#133)
1 parent 237b2e6 commit 2dcb981

File tree

6 files changed

+616
-12
lines changed

6 files changed

+616
-12
lines changed

crates/definitions/src/data.rs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ pub const TOKENS: Tokens<'_> = Tokens {
7676
T!("add"),
7777
T!("after"),
7878
T!("agent"),
79+
T!("aggregate"),
7980
T!("all"),
8081
T!("allow"),
8182
T!("alter"),
83+
T!("analytic"),
8284
T!("analyze"),
8385
T!("and"),
8486
T!("annotations"),
@@ -103,6 +105,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
103105
T!("binary_integer"),
104106
T!("blob"),
105107
T!("body"),
108+
T!("breadth"),
106109
T!("bulk"),
107110
T!("by"),
108111
T!("byte"),
@@ -154,6 +157,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
154157
T!("deferred"),
155158
T!("definer"),
156159
T!("delete"),
160+
T!("depth"),
157161
T!("desc"),
158162
T!("deterministic"),
159163
T!("disable"),
@@ -179,6 +183,8 @@ pub const TOKENS: Tokens<'_> = Tokens {
179183
T!("extend"),
180184
T!("extended"),
181185
T!("external"),
186+
T!("fact"),
187+
T!("filter"),
182188
T!("final"),
183189
T!("first"),
184190
T!("float"),
@@ -192,6 +198,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
192198
T!("function"),
193199
T!("global"),
194200
T!("grant"),
201+
T!("hierarchies"),
195202
T!("group"),
196203
T!("grouping"),
197204
T!("hash"),
@@ -237,6 +244,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
237244
T!("loop"),
238245
T!("map"),
239246
T!("maxlen"),
247+
T!("measures"),
240248
T!("maxvalue"),
241249
T!("member"),
242250
T!("metadata"),
@@ -339,6 +347,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
339347
T!("scale"),
340348
T!("schema"),
341349
T!("scope"),
350+
T!("search"),
342351
T!("second"),
343352
T!("select"),
344353
T!("self"),
@@ -408,6 +417,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
408417
};
409418

410419
pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
420+
S!("add_calcs_clause", "A node containing an add_calcs_clause"),
411421
S!("accessible_by_clause", "A node containing an accessible by clause"),
412422
S!("alias", "An Alias for columns"),
413423
S!("and", "Logical operator AND"),
@@ -417,11 +427,13 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
417427
S!("assign", "An Assign operator `:=`"),
418428
S!("assignment_expr", "An assignment like a=b"),
419429
S!("asterisk", "An asterisk `*`"),
430+
S!("base_meas_clause", "A node containing a base meas clause"),
420431
S!("basic_loop", "A node that contains a basic LOOP"),
421432
S!("bind_var", "A bind variable, e.g. `:OLD`"),
422433
S!("block", "A node that marks a block"),
423434
S!("block_statement", "A node that marks an individual statement inside a block"),
424435
S!("bulk_into_clause", "A node containing a BULK COLLECT INTO clause"),
436+
S!("calc_meas_clause", "A node containing a calc meas clause"),
425437
S!("case_stmt", "A node containing a CASE statement"),
426438
S!("colon", "A colon token"),
427439
S!("column_expr", "A single column expression, as part of an SELECT clause"),
@@ -435,13 +447,15 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
435447
S!("connect_by_root", "The CONNECT_BY_ROOT operator"),
436448
S!("connect", "The CONNECT BY clause in selects"),
437449
S!("constraint", "A node that marks a full constraint"),
450+
S!("cube_meas_clause", "A node that contains a cube meas clause"),
438451
S!("continue_stmt", "A node that contains a continue statement"),
439452
S!("constructor_declaration", "A node containing a constructor_declaration"),
440453
S!("cross_join_clause", "A node that contains a full CROSS JOIN clause"),
441454
S!("cross_outer_apply_clause", "A node that contains a full cross outer apply clause"),
442455
S!("cursor_parameter_declaration", "A node containing a cursor parameter declaration"),
443456
S!("cursor_parameter_declarations", "A node containing cursor parameter declarations"),
444457
S!("cursor_stmt", "A node that marks a full cursor statement"),
458+
S!("cycle_clause", "A node that contains a full cycle clause"),
445459
S!("datatype", "Any built-in oracle datatype"),
446460
S!("decimal", "A decimal, positive, or negative"),
447461
S!("declare_section", "A node that marks the declare section of a block"),
@@ -456,16 +470,20 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
456470
S!("execute_immediate_stmt", "A node that contains a full EXECUTE IMMEDIATE statement"),
457471
S!("exit_stmt", "A node that contains a full EXIT statement"),
458472
S!("expression", "Holds a generic SQL logic/arithmetic expression"),
473+
S!("filter_clause", "A node that contains a full filter clause"),
474+
S!("filter_clauses", "A node that contains a full filter clauses"),
459475
S!("for_loop", "A node containing a FOR LOOP"),
460476
S!("func_decl_in_type", "A node containing a func_decl_in_type"),
461477
S!("function", "A node that marks a full CREATE [..] FUNCTION block"),
462-
S!("function_header", "A node that marks a FUNCTION header with params and return type"),
478+
S!("function_header", "A node that marks a FUNCTION header with params and return type"),
463479
S!("function_invocation", "An invocation of a function, from the identifier and the opening bracket to the closing bracket"),
480+
S!("hier_ids", "A node containing hier_ids"),
464481
S!("function_spec", "A node containing a function_spec"),
465482
S!("group_by_clause", "A node containing a group by clause"),
466483
S!("grouping_expression_list", "A node containing a grouping expression list"),
467484
S!("grouping_sets_clause", "A node containing a grouping set clause"),
468485
S!("hierarchical_op", "An operator in hierarchical queries"),
486+
S!("hierarchies_clause", "A node that marks a hierarchies clause"),
469487
S!("ident", "An identifier, either quoted or unquoted"),
470488
S!("ident_group", "An identifier group, consisting of multiple idents"),
471489
S!("iteration_control", "A node containing an iteration control block"),
@@ -515,6 +533,7 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
515533
S!("root", "The root node element"),
516534
S!("rowtype_clause", "A node containing a rowtype definition for cursors"),
517535
S!("r_paren", "Right Paren"),
536+
S!("search_clause", "A node containing a search clause"),
518537
S!("searched_case_expression", "A node containing a searched case expression"),
519538
S!("select_clause", "A node that contains the whole SELECT clause of a query"),
520539
S!("select_stmt", "A node that marks a full SELECT statement"),
@@ -526,6 +545,9 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
526545
S!("simple_case_expression", "A node containing a simple case expression"),
527546
S!("slash", "Slash char `/`"),
528547
S!("starts", "A STARTS WITH clause in a SELECT statement"),
548+
S!("subav_clause", "A node containing a full subav clause"),
549+
S!("subav_factoring_clause", "A node containing a full subav factoring clause"),
550+
S!("subquery_factoring_clause", "A node containing a full subquery factoring clause"),
529551
S!("streaming_clause", "A node containing a streaming clause"),
530552
S!("subprog_decl_in_type", "A node containing a subprog_decl_in_type"),
531553
S!("text", "A text slice node"),
@@ -536,11 +558,13 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
536558
S!("udt_definition_stmt", "A node containing a UDT-Definitions"),
537559
S!("update_stmt", "A node that marks a full UPDATE statement"),
538560
S!("using_clause", "A node containing a using clause"),
561+
S!("values_clause", "A node containing a values clause"),
539562
S!("varray_type_spec","A node containing a full varray_type_spec"),
540563
S!("variable_decl", "A node that marks a variable declaration as part of a function or procedure"),
541564
S!("variable_decl_list", "A node that marks a list of variable declarations of functions and procedures"),
542565
S!("view", "A node that marks a full CREATE VIEW block"),
543566
S!("where_clause", "Represent a complete `WHERE` clause expression"),
544567
S!("while_loop", "A node containing a WHILE LOOP"),
545568
S!("whitespace", "Any whitespace character"),
569+
S!("with_clause", "A node containing a with clause"),
546570
];

0 commit comments

Comments
 (0)