forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] user-defined subprograms... (yugabyte#13244)
* user-defined subprograms commit #1: changed '/the-sql-language/statements/' & added '/user-defined-subprograms-and-anon-blocks/'. * further adjustments * oops forgot the type on the new files * add one more right nav Co-authored-by: Alex Ball <aball@yugabyte.com>
- Loading branch information
Showing
180 changed files
with
4,249 additions
and
1,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...pi/ysql/syntax_resources/call_procedure,fn_invocation,subprogram_arg.diagram.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#### call_procedure | ||
|
||
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="501" height="80" viewbox="0 0 501 80"><path class="connector" d="M0 52h15m50 0h10m133 0h10m25 0h50m-5 0q-5 0-5-5v-20q0-5 5-5h52m24 0h52q5 0 5 5v20q0 5-5 5m-5 0h40m-193 0q5 0 5 5v8q0 5 5 5h168q5 0 5-5v-8q0-5 5-5m5 0h10m25 0h15"/><polygon points="0,59 5,52 0,45" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="35" width="50" height="25" rx="7"/><text class="text" x="25" y="52">CALL</text><a xlink:href="../syntax_resources/grammar_diagrams#subprogram-name"><rect class="rule" x="75" y="35" width="133" height="25"/><text class="text" x="85" y="52">subprogram_name</text></a><rect class="literal" x="218" y="35" width="25" height="25" rx="7"/><text class="text" x="228" y="52">(</text><rect class="literal" x="340" y="5" width="24" height="25" rx="7"/><text class="text" x="350" y="22">,</text><a xlink:href="#subprogram-arg"><rect class="rule" x="293" y="35" width="118" height="25"/><text class="text" x="303" y="52">subprogram_arg</text></a><rect class="literal" x="461" y="35" width="25" height="25" rx="7"/><text class="text" x="471" y="52">)</text><polygon points="497,59 501,59 501,45 497,45" style="fill:black;stroke-width:0"/></svg> | ||
|
||
#### fn_invocation | ||
|
||
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="441" height="80" viewbox="0 0 441 80"><path class="connector" d="M0 52h15m133 0h10m25 0h50m-5 0q-5 0-5-5v-20q0-5 5-5h52m24 0h52q5 0 5 5v20q0 5-5 5m-5 0h40m-193 0q5 0 5 5v8q0 5 5 5h168q5 0 5-5v-8q0-5 5-5m5 0h10m25 0h15"/><polygon points="0,59 5,52 0,45" style="fill:black;stroke-width:0"/><a xlink:href="../syntax_resources/grammar_diagrams#subprogram-name"><rect class="rule" x="15" y="35" width="133" height="25"/><text class="text" x="25" y="52">subprogram_name</text></a><rect class="literal" x="158" y="35" width="25" height="25" rx="7"/><text class="text" x="168" y="52">(</text><rect class="literal" x="280" y="5" width="24" height="25" rx="7"/><text class="text" x="290" y="22">,</text><a xlink:href="#subprogram-arg"><rect class="rule" x="233" y="35" width="118" height="25"/><text class="text" x="243" y="52">subprogram_arg</text></a><rect class="literal" x="401" y="35" width="25" height="25" rx="7"/><text class="text" x="411" y="52">)</text><polygon points="437,59 441,59 441,45 437,45" style="fill:black;stroke-width:0"/></svg> | ||
|
||
#### subprogram_arg | ||
|
||
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="294" height="50" viewbox="0 0 294 50"><path class="connector" d="M0 22h35m81 0h10m40 0h20m-166 0q5 0 5 5v8q0 5 5 5h141q5 0 5-5v-8q0-5 5-5m5 0h10m83 0h15"/><polygon points="0,29 5,22 0,15" style="fill:black;stroke-width:0"/><a xlink:href="../syntax_resources/grammar_diagrams#arg-name"><rect class="rule" x="35" y="5" width="81" height="25"/><text class="text" x="45" y="22">arg_name</text></a><rect class="literal" x="126" y="5" width="40" height="25" rx="7"/><text class="text" x="136" y="22">=></text><a xlink:href="../syntax_resources/grammar_diagrams#expression"><rect class="rule" x="196" y="5" width="83" height="25"/><text class="text" x="206" y="22">expression</text></a><polygon points="290,29 294,29 294,15 290,15" style="fill:black;stroke-width:0"/></svg> | ||
|
8 changes: 8 additions & 0 deletions
8
...pi/ysql/syntax_resources/call_procedure,fn_invocation,subprogram_arg.grammar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
```output.ebnf | ||
call_procedure ::= CALL subprogram_name ( [ subprogram_arg [ , ... ] ] | ||
) | ||
fn_invocation ::= subprogram_name ( [ subprogram_arg [ , ... ] ] ) | ||
subprogram_arg ::= [ arg_name => ] expression | ||
``` |
2 changes: 1 addition & 1 deletion
2
...resources/exprs/aggregate_functions/group_by_clause,grouping_element.grammar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ew/api/ysql/syntax_resources/exprs/aggregate_functions/having_clause.grammar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
```ebnf | ||
```output.ebnf | ||
having_clause ::= HAVING boolean_expression | ||
``` |
2 changes: 1 addition & 1 deletion
2
...rdinary_aggregate_fn_invocation,within_group_aggregate_fn_invocation.grammar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lause,frame_bounds,frame_start,frame_end,frame_bound,frame_exclusion.grammar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
```ebnf | ||
```output.ebnf | ||
frame_clause ::= [ { RANGE | ROWS | GROUPS } frame_bounds ] | ||
[ frame_exclusion ] | ||
|
2 changes: 1 addition & 1 deletion
2
...ces/exprs/window_functions/select_start,window_clause,fn_over_window.grammar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...w/api/ysql/syntax_resources/exprs/window_functions/window_definition.grammar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.