2021-08-21 20:15:42 +03:00
|
|
|
{
|
|
|
|
"name": "plpgsql",
|
|
|
|
"rules": {
|
|
|
|
"source_file": {
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "psql_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ";"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"_statement": {
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "psql_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_function_statement"
|
|
|
|
},
|
2021-08-31 21:33:46 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "drop_function_statement"
|
|
|
|
},
|
2021-09-02 21:45:29 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "drop_type_statement"
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_table_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_schema_statement"
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_type_statement"
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "delete_statement"
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_statement"
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "grant_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_trigger_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_sequence_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_index_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "do_block"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-02 21:45:29 +03:00
|
|
|
"drop_type_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][rR][oO][pP]"
|
2021-09-02 21:45:29 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][yY][pP][eE]"
|
2021-09-02 21:45:29 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][aA][sS][cC][aA][dD][eE]"
|
2021-09-02 21:45:29 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][sS][tT][rR][iI][cC][tT]"
|
2021-09-02 21:45:29 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
"update_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "with_query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][pP][dD][aA][tT][eE]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_set"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_set"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][rR][oO][mM]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "where_filter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "returning"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-31 21:33:46 +03:00
|
|
|
"drop_function_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][rR][oO][pP]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][uU][nN][cC][tT][iI][oO][nN]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "drop_function_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "drop_function_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][aA][sS][cC][aA][dD][eE]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][sS][tT][rR][iI][cC][tT]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"drop_function_item": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_type"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_type"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
"create_type_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][eE][aA][tT][eE]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][yY][pP][eE]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][nN][uU][mM]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "string"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"_with_query_statement": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "delete_statement"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_statement"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"insert_statement": {
|
2021-08-21 20:15:42 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-28 13:46:32 +03:00
|
|
|
"name": "with_query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][sS][eE][rR][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][tT][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "as"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-05 23:30:26 +03:00
|
|
|
"type": "ALIAS",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
},
|
|
|
|
"named": true,
|
|
|
|
"value": "columns"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_items"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_conflict"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-09-01 18:48:58 +03:00
|
|
|
"name": "returning"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "into"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"insert_items": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[vV][aA][lL][uU][eE][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[vV][aA][lL][uU][eE][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-05 23:46:19 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_values"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_values"
|
|
|
|
}
|
|
|
|
]
|
2023-01-05 23:30:26 +03:00
|
|
|
}
|
2023-01-05 23:46:19 +03:00
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
2021-09-02 21:45:29 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-01-05 23:30:26 +03:00
|
|
|
"insert_values": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "insert_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"insert_item": {
|
|
|
|
"type": "CHOICE",
|
2021-08-21 20:15:42 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"insert_conflict": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][fF][lL][iI][cC][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "conflict_target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT][hH][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
2021-08-21 20:15:42 +03:00
|
|
|
"members": [
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][fF][lL][iI][cC][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "conflict_target"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][pP][dD][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_set"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_set"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "where_filter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"conflict_target": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][sS][tT][rR][aA][iI][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"update_set": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "="
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_value"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "="
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][oO][wW]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_value"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "update_value"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"update_value": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
"returning": {
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][tT][uU][rR][nN][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"create_table_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][eE][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "temporary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "unlogged"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][aA][bB][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_not_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_table_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "create_table_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"create_table_item": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "table_column_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "table_constraint"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"create_schema_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][eE][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][cC][hH][eE][mM][aA]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_not_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "schema_role"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "schema_role"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"schema_role": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][uU][tT][hH][oO][rR][iI][zZ][aA][tT][iI][oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][uU][rR][rR][eE][nN][tT][__][uU][sS][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][sS][sS][iI][oO][nN][__][uU][sS][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"create_index_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][eE][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][nN][iI][qQ][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][dD][eE][xX]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][cC][uU][rR][rR][eE][nN][tT][lL][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_not_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_using"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_col"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_col"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_includes"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "where_filter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"index_using": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][sS][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"index_col": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_col_dir"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_col_nulls"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_col_dir"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "index_col_nulls"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"index_col_dir": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS][cC]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][sS][cC]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"index_col_nulls": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][iI][rR][sS][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[lL][aA][sS][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"index_includes": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][cC][lL][uU][dD][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "with_query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][lL][eE][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][rR][oO][mM]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "delete_using"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "where_filter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][tT][uU][rR][nN][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "into"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete_using": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][sS][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][lL][tT][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][aA][bB][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_change"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_change": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_action"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_action"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_rename_column"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_rename_constraint"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_rename_table"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_change_schema"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_action": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][dD][dD]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "table_constraint"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][dD][dD]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][lL][uU][mM][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_not_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "table_column_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][rR][oO][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][sS][tT][rR][aA][iI][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_fk_ref_action"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][rR][oO][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][lL][uU][mM][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_table_fk_ref_action"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][lL][tT][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][lL][uU][mM][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_column_action"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_column_action": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][rR][oO][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][rR][oO][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][yY][pP][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_column_type"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][aA][tT][aA]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][yY][pP][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "alter_column_type"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"table_constraint": {
|
2023-01-06 00:54:05 +03:00
|
|
|
"type": "SEQ",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:54:05 +03:00
|
|
|
"type": "CHOICE",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:54:05 +03:00
|
|
|
"type": "SEQ",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:54:05 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][sS][tT][rR][aA][iI][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:54:05 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
2023-01-06 00:54:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:54:05 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "table_constraint_ty"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2023-01-06 00:54:05 +03:00
|
|
|
"name": "constraint_when"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:54:05 +03:00
|
|
|
"type": "BLANK"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"constraint_when": {
|
2023-01-06 00:58:28 +03:00
|
|
|
"type": "SEQ",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][eE][rR][rR][aA][bB][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:58:28 +03:00
|
|
|
"type": "CHOICE",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:58:28 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][iI][tT][iI][aA][lL][lL][yY]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][mM][mM][eE][dD][iI][aA][tT][eE]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][eE][rR][rR][eE][dD]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:58:28 +03:00
|
|
|
"type": "BLANK"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"table_constraint_ty": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][hH][eE][cC][kK]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][nN][iI][qQ][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][rR][iI][mM][aA][rR][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[kK][eE][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][oO][rR][eE][iI][gG][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[kK][eE][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "constraint_foreign_key"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"constraint_foreign_key": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][fF][eE][rR][eE][nN][cC][eE][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "fk_action"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"fk_action": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][lL][eE][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "fk_ref_action"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][pP][dD][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "fk_ref_action"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"fk_ref_action": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][cC][tT][iI][oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][sS][tT][rR][iI][cC][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][aA][sS][cC][aA][dD][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_column_type": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][sS][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_fk_ref_action": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][sS][tT][rR][iI][cC][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][aA][sS][cC][aA][dD][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"table_column_item": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "column_constraint"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"column_constraint": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][sS][tT][rR][aA][iI][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "column_constraint_ty"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "constraint_when"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "column_constraint_ty"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "constraint_when"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"column_constraint_ty": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][hH][eE][cC][kK]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][nN][iI][qQ][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][rR][iI][mM][aA][rR][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[kK][eE][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "constraint_foreign_key"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_rename_column": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][nN][aA][mM][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][lL][uU][mM][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_rename_constraint": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][nN][aA][mM][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][sS][tT][rR][aA][iI][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_rename_table": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][nN][aA][mM][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alter_table_change_schema": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][cC][hH][eE][mM][aA]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"grant_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[gG][rR][aA][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "grant_privileges"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "grant_targets"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "grant_roles"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"grant_roles": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][uU][bB][lL][iI][cC]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][uU][rR][rR][eE][nN][tT][__][uU][sS][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][sS][sS][iI][oO][nN][__][uU][sS][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[gG][rR][oO][uU][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][uU][bB][lL][iI][cC]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][uU][rR][rR][eE][nN][tT][__][uU][sS][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][sS][sS][iI][oO][nN][__][uU][sS][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[gG][rR][oO][uU][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"grant_privileges": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][rR][iI][vV][iI][lL][eE][gG][eE][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"grant_targets": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][aA][bB][lL][eE][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][qQ][uU][eE][nN][cC][eE][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][uU][nN][cC][tT][iI][oO][nN][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][cC][hH][eE][mM][aA]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][qQ][uU][eE][nN][cC][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][aA][bB][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][cC][hH][eE][mM][aA]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][uU][nN][cC][tT][iI][oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][rR][oO][cC][eE][dD][uU][rR][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][oO][uU][tT][iI][nN][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "grant_function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "grant_function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"grant_function": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_type"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_type"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"grant_all_in_schema": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][cC][hH][eE][mM][aA]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"psql_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "\\"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT1",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[\\n\\r]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"create_sequence_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][eE][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "temporary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][qQ][uU][eE][nN][cC][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_not_exists"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "as"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "sequence_increment"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "sequence_min"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "sequence_max"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "sequence_start"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "sequence_cache"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "sequence_cycle"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "sequence_owned"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sequence_increment": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][cC][rR][eE][mM][eE][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sequence_min": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][iI][nN][vV][aA][lL][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
2023-01-06 00:29:36 +03:00
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][iI][nN][vV][aA][lL][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sequence_max": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][aA][xX][vV][aA][lL][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][aA][xX][vV][aA][lL][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sequence_start": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][tT][aA][rR][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[wW][iI][tT][hH]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sequence_cache": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][aA][cC][hH][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sequence_cycle": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][yY][cC][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sequence_owned": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][wW][nN][eE][dD]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][nN][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"create_trigger_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][eE][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][oO][nN][sS][tT][rR][aA][iI][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][rR][iI][gG][gG][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "trigger_when"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "trigger_event"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "trigger_scope"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "trigger_cond"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "trigger_exec"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"trigger_when": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][eE][fF][oO][rR][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][fF][tT][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][sS][tT][eE][aA][dD][ ][oO][fF]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"trigger_event": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][sS][eE][rR][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][pP][dD][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][lL][eE][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][rR][uU][nN][cC][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][sS][eE][rR][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][pP][dD][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][lL][eE][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][rR][uU][nN][cC][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"trigger_scope": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][oO][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][aA][cC][hH]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][tT][aA][tT][eE][mM][eE][nN][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][oO][wW]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"trigger_exec": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][xX][eE][cC][uU][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][rR][oO][cC][eE][dD][uU][rR][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][uU][nN][cC][tT][iI][oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_call"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"trigger_cond": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[wW][hH][eE][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"_plpgsql_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "assign_statement"
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "get_diagnostics_statement"
|
|
|
|
},
|
2021-09-02 21:45:29 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "open_cursor_statement"
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "return_statement"
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "raise_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "if_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "for_statement"
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "execute_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "perform_statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ";"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-02 21:45:29 +03:00
|
|
|
"open_cursor_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][pP][eE][nN]"
|
2021-09-02 21:45:29 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][oO][rR]"
|
2021-09-02 21:45:29 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "execute_statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
"get_diagnostics_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[gG][eE][tT]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][uU][rR][rR][eE][nN][tT]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][iI][aA][gG][nN][oO][sS][tT][iI][cC][sS]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "assign_statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
"for_statement": {
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][oO][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SEQ",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-30 21:31:09 +03:00
|
|
|
"name": "identifier"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][vV][eE][rR][sS][eE]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ".."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][yY]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "BLANK"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "execute_statement"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[lL][oO][oO][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_plpgsql_statement"
|
|
|
|
}
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][nN][dD]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[lL][oO][oO][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
"raise_statement": {
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][aA][iI][sS][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2021-09-01 18:48:58 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "string"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2021-09-01 18:48:58 +03:00
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2021-09-01 18:48:58 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
2021-08-30 21:31:09 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"if_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][fF]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][hH][eE][nN]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT1",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_plpgsql_statement"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][lL][sS][iI][fF]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][lL][sS][eE][iI][fF]"
|
2021-08-30 21:31:09 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][hH][eE][nN]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT1",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_plpgsql_statement"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][lL][sS][eE]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT1",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_plpgsql_statement"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][nN][dD]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][fF]"
|
2021-08-30 21:31:09 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execute_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][xX][eE][cC][uU][tT][eE]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "into"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "execute_using"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execute_using": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][sS][iI][nN][gG]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"assign_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
2021-08-31 21:33:46 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "="
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ":="
|
|
|
|
}
|
|
|
|
]
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"return_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][tT][uU][rR][nN]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
2023-01-06 00:29:36 +03:00
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[qQ][uU][eE][rR][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[qQ][uU][eE][rR][yY]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "execute_statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"perform_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[pP][eE][rR][fF][oO][rR][mM]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"do_block": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "block"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"select_statement": {
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 0,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "with_query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][lL][eE][cC][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "into"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_from"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_where"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_group_by"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_having"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_order_by"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-30 21:31:09 +03:00
|
|
|
"name": "_select_limit_offset"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "into"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"with_query": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[wW][iI][tT][hH]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "with_query_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "with_query_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"with_query_item": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][aA][tT][eE][rR][iI][aA][lL][iI][zZ][eE][dD]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][aA][tT][eE][rR][iI][aA][lL][iI][zZ][eE][dD]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_with_query_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"into": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][tT][oO]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][tT][rR][iI][cC][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"select_having": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[hH][aA][vV][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
"_select_limit_offset": {
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-30 21:31:09 +03:00
|
|
|
"name": "select_limit"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_offset"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_offset"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_limit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
2021-08-30 21:31:09 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"select_limit": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[lL][iI][mM][iI][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "CHOICE",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
2021-08-30 21:31:09 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"select_offset": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][fF][fF][sS][eE][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][oO][wW]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][oO][wW][sS]"
|
2021-08-30 21:31:09 +03:00
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "BLANK"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"select_group_by": {
|
2021-08-31 21:33:46 +03:00
|
|
|
"type": "PREC",
|
|
|
|
"value": 1,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[gG][rR][oO][uU][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
2021-08-31 21:33:46 +03:00
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][yY]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
2021-08-31 21:33:46 +03:00
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
2021-08-31 21:33:46 +03:00
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-31 21:33:46 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"select_order_by": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][rR][dD][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "order_by_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "order_by_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"order_by_item": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "order_by_direction"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"order_by_direction": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS][cC]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][sS][cC]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"select_where": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "where_filter"
|
|
|
|
},
|
|
|
|
"select_item": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"select_from": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][rR][oO][mM]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-30 21:31:09 +03:00
|
|
|
"name": "from_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
"from_item": {
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 0,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_select"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_table"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "join_item"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"from_select": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "select_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"from_table": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"from_function": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"join_item": {
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 0,
|
|
|
|
"content": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][aA][tT][uU][rR][aA][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "join_type"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "join_type"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "join_condition"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][oO][sS][sS]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[jJ][oO][iI][nN]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "from_item"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"join_condition": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][sS][iI][nN][gG]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_list_of_identifiers"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"join_type": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][nN][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[lL][eE][fF][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][uU][tT][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][iI][gG][hH][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][uU][tT][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][uU][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][uU][tT][eE][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[jJ][oO][iI][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"create_function_statement": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[cC][rR][eE][aA][tT][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "or_replace"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][uU][nN][cC][tT][iI][oO][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_signature"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_return"
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "block"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "string"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[lL][aA][nN][gG][uU][aA][gG][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "string"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_volatility"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_run_as"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"function_run_as": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][cC][uU][rR][iI][tT][yY]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][vV][oO][kK][eE][rR]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][iI][nN][eE][rR]"
|
2021-09-01 18:48:58 +03:00
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"function_return": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][tT][uU][rR][nN][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-09-02 21:45:29 +03:00
|
|
|
"name": "_type"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "return_setof"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "return_table"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"return_setof": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][tT][oO][fF]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-09-02 21:45:29 +03:00
|
|
|
"name": "_type"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"return_table": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][aA][bB][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"function_volatility": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][mM][mM][uU][tT][aA][bB][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][tT][aA][bB][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[vV][oO][lL][aA][tT][iI][lL][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"block": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "dollar_quote"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "declarations"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "body"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "dollar_quote"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][eE][gG][iI][nN]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_plpgsql_statement"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][nN][dD]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ";"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"dollar_quote": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "$"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "$"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"declarations": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][cC][lL][aA][rR][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_definition"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"var_definition": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ":="
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ";"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"function_signature": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_parameters"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"function_parameters": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "var_declaration"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][eE][fF][aA][uU][lL][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FIELD",
|
|
|
|
"name": "default_value",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"var_declaration": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "FIELD",
|
|
|
|
"name": "name",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FIELD",
|
|
|
|
"name": "type",
|
|
|
|
"content": {
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_type"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"where_filter": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[wW][hH][eE][rR][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"or_replace": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[rR][eE][pP][lL][aA][cC][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"temporary": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][eE][mM][pP]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][eE][mM][pP][oO][rR][aA][rR][yY]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-01-06 00:29:36 +03:00
|
|
|
"unlogged": {
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[uU][nN][lL][oO][gG][gG][eE][dD]"
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"if_not_exists": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][fF]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][xX][iI][sS][tT][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"if_exists": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][fF]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[eE][xX][iI][sS][tT][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"as": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][sS]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"_type": {
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SEQ",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "CHOICE",
|
2021-08-28 13:46:32 +03:00
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2023-01-06 00:40:41 +03:00
|
|
|
"name": "predefined_type"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "REPEAT1",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "["
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[%%][rR][oO][wW][tT][yY][pP][eE]"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[%%][tT][yY][pP][eE]"
|
2021-08-30 21:31:09 +03:00
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "BLANK"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-01-06 00:40:41 +03:00
|
|
|
"predefined_type": {
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][mM][eE][rR][iI][cC]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "precision"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2023-01-06 00:40:41 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[vV][aA][rR][cC][hH][aA][rR]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "type_length"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"precision": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
2023-01-06 00:40:41 +03:00
|
|
|
},
|
|
|
|
"type_length": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"string": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "PREC",
|
|
|
|
"value": 1,
|
|
|
|
"content": {
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "''"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PREC",
|
|
|
|
"value": 2,
|
|
|
|
"content": {
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[^']"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "'"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"comment": {
|
|
|
|
"type": "TOKEN",
|
|
|
|
"content": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "--"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": ".*"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "/*"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[^*]*\\*+([^/*][^*]*\\*+)*"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"_value_expression": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-30 21:31:09 +03:00
|
|
|
"name": "number"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-30 21:31:09 +03:00
|
|
|
"name": "dollar_quote_string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "string"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "false"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "null"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "star"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
2021-08-21 20:15:42 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-28 13:46:32 +03:00
|
|
|
"name": "select_statement"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SEQ",
|
2021-08-21 20:15:42 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-09-01 18:48:58 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "function_call"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
2021-09-02 21:45:29 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "array_constructor"
|
|
|
|
},
|
2021-08-21 20:15:42 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-28 13:46:32 +03:00
|
|
|
"name": "op_expression"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "time_expression"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "star"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-21 20:15:42 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-02 21:45:29 +03:00
|
|
|
"array_constructor": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][rR][rR][aA][yY]"
|
2021-09-02 21:45:29 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "["
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-30 21:31:09 +03:00
|
|
|
"dollar_quote_string": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "$"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "$"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
2021-09-02 21:45:29 +03:00
|
|
|
"value": "(([^$]+)|(%\\d+\\$[sI])|(\\$\\d+))+"
|
2021-08-30 21:31:09 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "$"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "$"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"time_expression": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
2021-08-21 20:15:42 +03:00
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "SEQ",
|
2021-08-21 20:15:42 +03:00
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-28 13:46:32 +03:00
|
|
|
"name": "identifier"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][iI][mM][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[zZ][oO][nN][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2021-08-31 21:33:46 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN][tT][eE][rR][vV][aA][lL]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_interval_fields"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"_interval_fields": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[yY][eE][aA][rR]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][oO][nN][tT][hH]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][aA][yY]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[hH][oO][uU][rR]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][iI][nN][uU][tT][eE]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][cC][oO][nN][dD]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[yY][eE][aA][rR]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][oO][nN][tT][hH]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][aA][yY]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[hH][oO][uU][rR]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][aA][yY]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][iI][nN][uU][tT][eE]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[dD][aA][yY]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][cC][oO][nN][dD]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[hH][oO][uU][rR]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][iI][nN][uU][tT][eE]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[hH][oO][uU][rR]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][cC][oO][nN][dD]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[mM][iI][nN][uU][tT][eE]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][oO]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[sS][eE][cC][oO][nN][dD]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"function_call": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
2021-08-21 20:15:42 +03:00
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-28 13:46:32 +03:00
|
|
|
"name": "select_statement"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "REPEAT",
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
|
|
|
}
|
|
|
|
]
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
2021-08-28 13:46:32 +03:00
|
|
|
"value": ")"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"op_expression": {
|
|
|
|
"type": "CHOICE",
|
2021-08-21 20:15:42 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 12,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "cast"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-09-02 21:45:29 +03:00
|
|
|
"name": "_type"
|
2021-08-28 13:46:32 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "PREC_RIGHT",
|
|
|
|
"value": 10,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "minus"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "plus"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 8,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "*"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "%"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 7,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "-"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "+"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 6,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "other_op"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 5,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "contains_op"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 4,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "comparison_op"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-08-31 21:33:46 +03:00
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 3,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "comparison_kw"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 3,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "comparison_null"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "PREC_RIGHT",
|
|
|
|
"value": 2,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "not"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PREC_LEFT",
|
|
|
|
"value": 1,
|
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "and"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "or"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_value_expression"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"_list_of_identifiers": {
|
2021-08-21 20:15:42 +03:00
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "("
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-28 13:46:32 +03:00
|
|
|
"name": "identifier"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "REPEAT",
|
2021-08-21 20:15:42 +03:00
|
|
|
"content": {
|
|
|
|
"type": "SEQ",
|
|
|
|
"members": [
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ","
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
2021-08-28 13:46:32 +03:00
|
|
|
"name": "identifier"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "BLANK"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ")"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"comparison_op": {
|
|
|
|
"type": "CHOICE",
|
2021-08-21 20:15:42 +03:00
|
|
|
"members": [
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "STRING",
|
|
|
|
"value": "<"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "STRING",
|
|
|
|
"value": ">"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "="
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "<="
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ">="
|
|
|
|
},
|
2021-08-21 20:15:42 +03:00
|
|
|
{
|
|
|
|
"type": "STRING",
|
2021-08-28 13:46:32 +03:00
|
|
|
"value": "<>"
|
2021-08-21 20:15:42 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
2021-08-28 13:46:32 +03:00
|
|
|
"value": "!="
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-01 18:48:58 +03:00
|
|
|
"contains_op": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[bB][eE][tT][wW][eE][eE][nN]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][nN]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[lL][iI][kK][eE]"
|
2021-09-01 18:48:58 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][lL][iI][kK][eE]"
|
2021-09-01 18:48:58 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-31 21:33:46 +03:00
|
|
|
"comparison_null": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][sS][ ][nN][uU][lL][lL]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][sS][nN][uU][lL][lL]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][sS][ ][nN][oO][tT][ ][nN][uU][lL][lL]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT][nN][uU][lL][lL]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"comparison_kw": {
|
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][sS]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][sS][ ][dD][iI][sS][tT][iI][nN][cC][tT][ ][fF][rR][oO][mM]"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[iI][sS][ ][nN][oO][tT][ ][dD][iI][sS][tT][iI][nN][cC][tT][ ][fF][rR][oO][mM]"
|
2021-08-31 21:33:46 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"other_op": {
|
2021-08-21 20:15:42 +03:00
|
|
|
"type": "CHOICE",
|
|
|
|
"members": [
|
|
|
|
{
|
2021-08-28 13:46:32 +03:00
|
|
|
"type": "STRING",
|
|
|
|
"value": "||"
|
2021-08-31 21:33:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "<@"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "@>"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "<<"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": ">>"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "&&"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "&<"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "&>"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "-|-"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-08-28 13:46:32 +03:00
|
|
|
"cast": {
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "::"
|
|
|
|
},
|
|
|
|
"minus": {
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "-"
|
|
|
|
},
|
|
|
|
"plus": {
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "+"
|
|
|
|
},
|
|
|
|
"not": {
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][oO][tT]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"and": {
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[aA][nN][dD]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"or": {
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[oO][rR]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"true": {
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[tT][rR][uU][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"false": {
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[fF][aA][lL][sS][eE]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"null": {
|
2023-01-06 00:29:36 +03:00
|
|
|
"type": "PATTERN",
|
|
|
|
"value": "[nN][uU][lL][lL]"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
|
|
|
"star": {
|
|
|
|
"type": "STRING",
|
|
|
|
"value": "*"
|
|
|
|
},
|
|
|
|
"any": {
|
|
|
|
"type": "PATTERN",
|
|
|
|
"value": ".*"
|
|
|
|
},
|
|
|
|
"number": {
|
|
|
|
"type": "PATTERN",
|
2021-09-01 18:48:58 +03:00
|
|
|
"value": "-?\\d+"
|
2021-08-28 13:46:32 +03:00
|
|
|
},
|
2021-08-21 20:15:42 +03:00
|
|
|
"identifier": {
|
2021-08-30 21:31:09 +03:00
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "_identifier"
|
|
|
|
},
|
|
|
|
"_identifier": {
|
2021-08-21 20:15:42 +03:00
|
|
|
"type": "PATTERN",
|
2021-08-30 21:31:09 +03:00
|
|
|
"value": "[a-zA-Z0-9_]+(\\.?[a-zA-Z0-9_]+)*"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"extras": [
|
2021-08-28 13:46:32 +03:00
|
|
|
{
|
|
|
|
"type": "SYMBOL",
|
|
|
|
"name": "comment"
|
|
|
|
},
|
2021-08-21 20:15:42 +03:00
|
|
|
{
|
|
|
|
"type": "PATTERN",
|
2021-08-28 13:46:32 +03:00
|
|
|
"value": "[\\s\\uFEFF\\u2060\\u200B\\u00A0]"
|
2021-08-21 20:15:42 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"conflicts": [],
|
|
|
|
"precedences": [],
|
|
|
|
"externals": [],
|
|
|
|
"inline": [],
|
|
|
|
"supertypes": []
|
|
|
|
}
|
|
|
|
|