Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] [infra] hugo shortcode updates #11399

Merged
merged 9 commits into from
Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
group_by_clause ::= GROUP BY { grouping_element [ , ... ] }

grouping_element ::= ( ) | ( expression [ , ... ] )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
having_clause ::= HAVING boolean_expression
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
select_start ::= SELECT [ ALL |
DISTINCT [ ON { ( expression [ , ... ] ) } ] ]
[ * | { { expression
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
frame_clause ::= [ { RANGE | ROWS | GROUPS } frame_bounds ]
[ frame_exclusion ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
select_start ::= SELECT [ ALL |
DISTINCT [ ON { ( expression [ , ... ] ) } ] ]
[ * | { { expression
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
window_definition ::= ( [ name ]
[ PARTITION BY order_expr [ , ... ] ]
[ ORDER BY order_expr [ , ... ] ]
Expand Down
674 changes: 337 additions & 337 deletions docs/content/latest/api/ysql/syntax_resources/grammar_diagrams.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
abort ::= ABORT [ TRANSACTION | WORK ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_database ::= ALTER DATABASE name
[ [ WITH ] alter_database_option [ ... ]
| RENAME TO name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_default_priv ::= ALTER DEFAULT PRIVILEGES
[ FOR { ROLE | USER } role_name [ , ... ] ]
[ IN SCHEMA schema_name [ , ... ] ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_domain_default ::= ALTER DOMAIN name
{ SET DEFAULT expression | DROP DEFAULT }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_group ::= ALTER GROUP role_specification { ADD | DROP } USER
role_name [ , ... ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_policy ::= ALTER POLICY name ON table_name
[ TO { role_name
| PUBLIC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_role ::= ALTER ROLE role_specification
[ [ WITH ] alter_role_option [ , ... ] ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_sequence ::= ALTER SEQUENCE [ IF EXISTS ] sequence_name
alter_sequence_options

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_table ::= ALTER TABLE table_expr alter_table_action [ , ... ]

alter_table_action ::= ADD [ COLUMN ] column_name data_type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
alter_user ::= ALTER USER role_specification
[ [ WITH ] alter_role_option [ , ... ] ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
analyze ::= ANALYZE [ VERBOSE ] [ table_and_columns [ , ... ] ]

table_and_columns ::= table_name [ ( column_name [ , ... ] ) ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
begin ::= BEGIN [ TRANSACTION | WORK ] [ transaction_mode [ ... ] ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
call_procedure ::= CALL qualified_name (
[ procedure_argument [ , ... ] ] )

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
comment_on ::= COMMENT ON
{ ACCESS METHOD access_method_name
| AGGREGATE aggregate_name ( aggregate_signature )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
commit ::= COMMIT [ TRANSACTION | WORK ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
copy_from ::= COPY table_name [ ( column_name [ , ... ] ) ] FROM
{ 'filename' | PROGRAM 'command' | STDIN }
[ [ WITH ] ( option [ , ... ] ) ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_aggregate ::= create_aggregate_normal
| create_aggregate_order_by
| create_aggregate_old
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_cast ::= create_cast_with_function
| create_cast_without_function
| create_cast_with_inout
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_composite_type ::= CREATE TYPE type_name AS (
[ composite_type_elem [ , ... ] ] )

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_database ::= CREATE DATABASE name [ create_database_options ]

create_database_options ::= [ WITH ] [ OWNER [ = ] user_name ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_domain ::= CREATE DOMAIN name [ AS ] data_type
[ DEFAULT expression ]
[ [ domain_constraint [ ... ] ] ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_extension ::= CREATE EXTENSION [ IF NOT EXISTS ] extension_name
[ WITH ] [ SCHEMA schema_name ]
[ VERSION version ] [ CASCADE ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_function ::= CREATE [ OR REPLACE ] FUNCTION function_name (
[ arg_decl [ , ... ] ] )
[ RETURNS data_type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_group ::= CREATE GROUP role_name
[ [ WITH ] role_option [ , ... ] ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_index ::= CREATE [ UNIQUE ] INDEX [ NONCONCURRENTLY ]
[ [ IF NOT EXISTS ] name ] ON [ ONLY ] table_name
[ USING access_method_name ] ( index_elem [ , ... ] )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_operator ::= CREATE OPERATOR operator_name (
{ FUNCTION = function_name
| PROCEDURE = procedure_name }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_operator_class ::= CREATE OPERATOR CLASS operator_class_name
[ DEFAULT ] FOR TYPE data_type USING
index_method AS operator_class_as [ , ... ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_policy ::= CREATE POLICY name ON table_name
[ AS { PERMISSIVE | RESTRICTIVE } ]
[ FOR { ALL | SELECT | INSERT | UPDATE | DELETE } ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_procedure ::= CREATE [ OR REPLACE ] PROCEDURE name (
[ arg_decl [ , ... ] ] ) procedure_attribute
[ ... ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_role ::= CREATE ROLE role_name
[ [ WITH ] role_option [ , ... ] ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_rule ::= CREATE [ OR REPLACE ] RULE rule_name AS ON rule_event
TO table_name [ WHERE boolean_expression ] DO
[ ALSO | INSTEAD ] { NOTHING
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_schema_name ::= CREATE SCHEMA [ IF NOT EXISTS ] schema_name
[ AUTHORIZATION role_specification ]
[ schema_element [ ... ] ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_sequence ::= CREATE SEQUENCE [ IF NOT EXISTS ] sequence_name
sequence_options

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_table ::= CREATE [ TEMPORARY | TEMP ] TABLE [ IF NOT EXISTS ]
table_name ( [ table_elem [ , ... ] ] )
[ WITH ( { COLOCATED = { 'true' | 'false' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_table_as ::= CREATE TABLE [ IF NOT EXISTS ] table_name
[ ( column_name [ , ... ] ) ] AS query
[ WITH [ NO ] DATA ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_trigger ::= CREATE TRIGGER name { BEFORE | AFTER | INSTEAD OF }
{ event [ OR ... ] } ON table_name
[ FROM table_name ] [ NOT DEFERRABLE ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_user ::= CREATE USER role_name
[ [ WITH ] role_option [ , ... ] ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
create_view ::= CREATE [ OR REPLACE ] VIEW qualified_name
[ ( name [ , ... ] ) ] AS select
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
deallocate ::= DEALLOCATE [ PREPARE ] { name | ALL }
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
delete ::= [ WITH [ RECURSIVE ] { common_table_expression [ , ... ] } ]
DELETE FROM table_expr [ [ AS ] alias ]
[ WHERE boolean_expression | WHERE CURRENT OF cursor_name ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
do ::= DO [ LANGUAGE lang_name ] code
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_aggregate ::= DROP AGGREGATE [ IF EXISTS ]
{ aggregate_name ( aggregate_signature ) }
[ , ... ] [ CASCADE | RESTRICT ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_cast ::= DROP CAST [ IF EXISTS ] ( cast_signature )
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
drop_database ::= DROP DATABASE [ IF EXISTS ] database_name
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_domain ::= DROP DOMAIN [ IF EXISTS ] name [ , ... ]
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_extension ::= DROP EXTENSION [ IF EXISTS ] extension_name
[ , ... ] [ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_function ::= DROP { FUNCTION | PROCEDURE } [ IF EXISTS ]
{ name [ ( [ argtype_decl [ , ... ] ] ) ] }
[ , ... ] [ CASCADE | RESTRICT ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
drop_group ::= DROP GROUP [ IF EXISTS ] role_name [ , ... ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_operator ::= DROP OPERATOR [ IF EXISTS ]
{ operator_name ( operator_signature ) } [ , ... ]
[ CASCADE | RESTRICT ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_operator_class ::= DROP OPERATOR CLASS [ IF EXISTS ]
operator_class_name USING index_method
[ CASCADE | RESTRICT ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_owned ::= DROP OWNED BY role_specification [ , ... ]
[ CASCADE | RESTRICT ]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_policy ::= DROP POLICY [ IF EXISTS ] name ON table_name
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_procedure ::= DROP PROCEDURE [ IF EXISTS ]
{ name [ ( [ argtype_decl [ , ... ] ] ) ] }
[ , ... ] [ CASCADE | RESTRICT ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
drop_role ::= DROP ROLE [ IF EXISTS ] role_name [ , ... ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_rule ::= DROP RULE [ IF EXISTS ] rule_name ON table_name
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_sequence ::= DROP SEQUENCE [ IF EXISTS ] sequence_name
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_table ::= DROP TABLE [ IF EXISTS ] table_name [ , ... ]
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_trigger ::= DROP TRIGGER [ IF EXISTS ] name ON table_name
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```ebnf
drop_type ::= DROP TYPE [ IF EXISTS ] type_name [ , ... ]
[ CASCADE | RESTRICT ]
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
drop_user ::= DROP USER [ IF EXISTS ] role_name [ , ... ]
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
end ::= END [ TRANSACTION | WORK ]
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
```ebnf
execute_statement ::= EXECUTE name [ ( expression [ , ... ] ) ]
```
Loading