Skip to content

Commit

Permalink
Merge branch 'main' into CMN-1256-add-sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
if-loop69420 committed Aug 23, 2024
2 parents c9080cb + 98f6447 commit 447e637
Show file tree
Hide file tree
Showing 7 changed files with 1,204 additions and 1 deletion.
47 changes: 47 additions & 0 deletions crates/definitions/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("bind_var", "bind_var", "bind_var", r"(?i):[a-z][a-z0-9_]*"),
],
keywords: &[
T!["accessible"],
T!("add"),
T!("after"),
T!("agent"),
Expand All @@ -67,13 +68,15 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("analyze"),
T!("and"),
T!("annotations"),
T!("any"),
T!("anyschema"),
T!("apply"),
T!("array"),
T!("as"),
T!("asc"),
T!("associate"),
T!("audit"),
T!("authid"),
T!("batch"),
T!("before"),
T!("begin"),
Expand Down Expand Up @@ -101,6 +104,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("check"),
T!("clob"),
T!("clone"),
T!("cluster"),
T!("collation"),
T!("collect"),
T!("comment"),
Expand All @@ -109,6 +113,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("connect_by_root"),
T!("constant"),
T!("constraint"),
T!("constructor"),
T!("container"),
T!("container_map"),
T!("containers_default"),
Expand Down Expand Up @@ -158,6 +163,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("extend"),
T!("extended"),
T!("external"),
T!("final"),
T!("first"),
T!("float"),
T!("follows"),
Expand All @@ -172,6 +178,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("grant"),
T!("group"),
T!("grouping"),
T!("hash"),
T!("having"),
T!("id"),
T!("identifier"),
Expand All @@ -185,6 +192,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("initially"),
T!("inner"),
T!("insert"),
T!("instantiable"),
T!("instead"),
T!("int"),
T!("integer"),
Expand All @@ -208,8 +216,10 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("logoff"),
T!("logon"),
T!("long"),
T!("map"),
T!("maxlen"),
T!("maxvalue"),
T!("member"),
T!("metadata"),
T!("minvalue"),
T!("mle"),
Expand Down Expand Up @@ -248,6 +258,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("nvarchar2"),
T!("object"),
T!("of"),
T!("oid"),
T!("old"),
T!("on"),
T!("only"),
Expand All @@ -256,16 +267,19 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("order"),
T!("others"),
T!("out"),
T!("overriding"),
T!("outer"),
T!("package"),
T!("parallel_enable"),
T!("parameters"),
T!("parent"),
T!("partition"),
T!("persistable"),
T!("pipelined"),
T!("plpgsql"),
T!("pls_integer"),
T!("pluggable"),
T!("pragma"),
T!("precedes"),
T!("precheck"),
T!("precision"),
Expand All @@ -286,11 +300,15 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("rely"),
T!("rename"),
T!("replace"),
T!("result"),
T!("result_cache"),
T!("restricted_references"),
T!("return"),
T!("returning"),
T!("reverse"),
T!("revoke"),
T!("rnds"),
T!("rnps"),
T!("rollup"),
T!("right"),
T!("row"),
Expand All @@ -316,6 +334,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("start"),
T!("starts"),
T!("startup"),
T!("static"),
T!("statistics"),
T!("store"),
T!("string"),
Expand All @@ -331,14 +350,17 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("to"),
T!("trigger"),
T!("truncate"),
T!("trust"),
T!("type"),
T!("under"),
T!("unique"),
T!("unplug"),
T!("update"),
T!("urowid"),
T!("using"),
T!("using_nls_comp"),
T!("validate"),
T!("value"),
T!("values"),
T!("varchar"),
T!("varchar2"),
Expand All @@ -351,6 +373,8 @@ pub const TOKENS: Tokens<'_> = Tokens {
T!("when"),
T!("where"),
T!("with"),
T!("wnds"),
T!("wnps"),
T!("work"),
T!("write"),
T!("xmlschema"),
Expand All @@ -361,6 +385,7 @@ pub const TOKENS: Tokens<'_> = Tokens {
};

pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
S!("accessible_by_clause", "A node containing an accessible by clause"),
S!("alias", "An Alias for columns"),
S!("and", "Logical operator AND"),
S!("argument", "A singular argument inside an argument list"),
Expand All @@ -386,6 +411,7 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
S!("connect_by_root", "The CONNECT_BY_ROOT operator"),
S!("connect", "The CONNECT BY clause in selects"),
S!("constraint", "A node that marks a full constraint"),
S!("constructor_declaration", "A node containing a constructor_declaration"),
S!("cross_join_clause", "A node that contains a full CROSS JOIN clause"),
S!("cross_outer_apply_clause", "A node that contains a full cross outer apply clause"),
S!("cursor_parameter_declaration", "A node containing a cursor parameter declaration"),
Expand All @@ -394,17 +420,21 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
S!("datatype", "Any built-in oracle datatype"),
S!("decimal", "A decimal, positive, or negative"),
S!("declare_section", "A node that marks the declare section of a block"),
S!("default_collation_clause", "A node containing a default collation clause"),
S!("delete_stmt", "A node that marks a full DELETE statement"),
S!("dollar_quote", "Single dollar quote `$$`"),
S!("dot", "A single dot"),
S!("element_spec", "A node that contains an element_spec"),
S!("else_expression", "A node containing an else expression"),
S!("error", "An error token with a cause"),
S!("exclam", "An exclamation mark `!`"),
S!("execute_immediate_stmt", "A node that contains a full EXECUTE IMMEDIATE statement"),
S!("expression", "Holds a generic SQL logic/arithmetic expression"),
S!("func_decl_in_type", "A node containing a func_decl_in_type"),
S!("function", "A node that marks a full CREATE [..] FUNCTION block"),
S!("function_header", "A node that marks a FUNCTION header with params and return type"),
S!("function_invocation", "An invocation of a function, from the identifier and the opening bracket to the closing bracket"),
S!("function_spec", "A node containing a function_spec"),
S!("group_by_clause", "A node containing a group by clause"),
S!("grouping_expression_list", "A node containing a grouping expression list"),
S!("grouping_sets_clause", "A node containing a grouping set clause"),
Expand All @@ -415,27 +445,39 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
S!("insert_stmt", "A node that marks a full INSERT statement"),
S!("integer", "Any integer, positive and negative"),
S!("into_clause", "A node that contains an `INTO` clause of a SELECT statement"),
S!("invoker_rights_clause", "A node that contains an invoker rights clause"),
S!("join_clause", "A node that contains a JOIN clause"),
S!("keyword", "A SQL keyword, e.g. `CREATE`"),
S!("logic_op", "Represents a logical SQL operator (AND, OR, NOT)"),
S!("l_paren", "Left Paren"),
S!("map_order_func_declaration", "A node containing a map_order_func_declaration"),
S!("minus", "A minus `-`"),
S!("nested_table_type_spec", "A node containing a full nested_table_type_spec"),
S!("natural_join_clause", "A node containing an NATURAL JOIN clause"),
S!("not", "Unary logical operator NOT"),
S!("object_base_type_def", "A node containing a full object_base_type_def"),
S!("object_subtype_def", "A node containing a full object_subtyep_def"),
S!("object_type_def", "A node containing a full object_type_def"),
S!("or", "Logical operator OR"),
S!("order_by_clause", "A node containing a full order by clause"),
S!("outer_join_clause", "A node containing a full OUTER JOIN clause"),
S!("package", "A node that marks a full CREATE PACKAGE BODY block"),
S!("param", "A single Param node, consisting of name & type"),
S!("param_list", "A node that consists of multiple parameters"),
S!("parallel_enable_clause", "A node containing a parallel enable clause"),
S!("partition_by_clause", "A node that contains a PARTITION BY clause"),
S!("percentage", "Percentage symbol"),
S!("plsql_type_source", "A node containing a plsql type source for UDTs"),
S!("plsql_body_type_source", "A node containing a plsql type"),
S!("plus", "A plus `+`"),
S!("prior", "The PL/SQL unary prior operator"),
S!("proc_decl_in_type", "A node containing a proc_decl_in_type"),
S!("procedure", "A node that marks a full CREATE [..] PROCEDURE block"),
S!("procedure_header", "A node that marks a PROCEDURE header with params"),
S!("procedure_spec", "A node that contains a full procedure_spec"),
S!("quoted_literal", "A single quoted literal"),
S!("range", "Two dots"),
S!("result_cache_clause", "A node containing a result_cache clause"),
S!("return_into_clause", "A node containing a return into clause"),
S!("raise_stmt", "A node that contains the whole RAISE statement for exceptions"),
S!("rollup_cube_clause", "A node containing a rollup_cube_clause"),
Expand All @@ -449,16 +491,21 @@ pub const SYNTAX_NODES: &'_ [SyntaxNode<'_>] = &[
S!("set_clause", "A node containing a SET clause in an UPDATE statement"),
S!("sequence_parameters", "A node containing the parameters for sequences"),
S!("sequence_stmt", "A node containing a CREATE SEQUENCE statement"),
S!("sharing_clause", "A node containing a SHARING clause"),
S!("simple_case_expression", "A node containing a simple case expression"),
S!("slash", "Slash char `/`"),
S!("starts", "A STARTS WITH clause in a SELECT statement"),
S!("streaming_clause", "A node containing a streaming clause"),
S!("subprog_decl_in_type", "A node containing a subprog_decl_in_type"),
S!("text", "A text slice node"),
S!("trigger","A node that marks a full CREATE [..] TRIGGER block"),
S!("trigger_header","A node that marks a TRIGGER header"),
S!("type_attribute", "A `%TYPE` attribute"),
S!("type_name", "A type name"),
S!("udt_definition_stmt", "A node containing a UDT-Definitions"),
S!("update_stmt", "A node that marks a full UPDATE statement"),
S!("using_clause", "A node containing a using clause"),
S!("varray_type_spec","A node containing a full varray_type_spec"),
S!("variable_decl", "A node that marks a variable declaration as part of a function or procedure"),
S!("variable_decl_list", "A node that marks a list of variable declarations of functions and procedures"),
S!("view", "A node that marks a full CREATE VIEW block"),
Expand Down
Loading

0 comments on commit 447e637

Please sign in to comment.