Project: YugabyteDB (App Definition and Development / Database)
File: create_function,create_procedure,alter_function,alter_procedure.diagram.md

<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="795" height="285" viewbox="0 0 795 285"><path class="connector" d="M0 52h15m67 0h30m37 0h10m74 0h20m-156 0q5 0 5 5v8q0 5 5 5h131q5 0 5-5v-8q0-5 5-5m5 0h10m83 0h10m133 0h10m25 0h50m-5 0q-5 0-5-5v-20q0-5 5-5h58m24 0h59q5 0 5 5v20q0 5-5 5m-5 0h40m-206 0q5 0 5 5v8q0 5 5 5h181q5 0 5-5v-8q0-5 5-5m5 0h10m25 0h7m2 0h2m2 0h2m-795 50h2m2 0h2m2 0h27m77 0h10m80 0h314m-496 0q5 0 5 5v50q0 5 5 5h5m77 0h10m58 0h10m25 0h30m-5 0q-5 0-5-5v-20q0-5 5-5h91m24 0h91q5 0 5 5v20q0 5-5 5m-95 0h10m80 0h30m25 0h5q5 0 5-5v-50q0-5 5-5m5 0h7m2 0h2m2 0h2m-531 110h2m2 0h2m2 0h27m-5 0q-5 0-5-5v-17q0-5 5-5h264q5 0 5 5v17q0 5-5 5m-259 0h20m167 0h67m-244 25q0 5 5 5h5m184 0h35q5 0 5-5m-239-25q5 0 5 5v50q0 5 5 5h5m214 0h5q5 0 5-5v-50q0-5 5-5m5 0h35"/><polygon points="0,59 5,52 0,45" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="35" width="67" height="25" rx="7"/><text class="text" x="25" y="52">CREATE</text><rect class="literal" x="112" y="35" width="37" height="25" rx="7"/><text class="text" x="122" y="52">OR</text><rect class="literal" x="159" y="35" width="74" height="25" rx="7"/><text class="text" x="169" y="52">REPLACE</text><rect class="literal" x="263" y="35" width="83" height="25" rx="7"/><text class="text" x="273" y="52">FUNCTION</text><a xlink:href="../../syntaxresources/grammardiagrams#subprogram-name"><rect class="rule" x="356" y="35" width="133" height="25"/><text class="text" x="366" y="52">subprogramname</text></a><rect class="literal" x="499" y="35" width="25" height="25" rx="7"/><text class="text" x="509" y="52">(</text><rect class="literal" x="627" y="5" width="24" height="25" rx="7"/><text class="text" x="637" y="22">,</text><a xlink:href="../../syntaxresources/grammardiagrams#arg-decl-with-dflt"><rect class="rule" x="574" y="35" width="131" height="25"/><text class="text" x="584" y="52">argdeclwithdflt</text></a><rect class="literal" x="755" y="35" width="25" height="25" rx="7"/><text class="text" x="765" y="52">)</text><rect class="literal" x="35" y="85" width="77" height="25" rx="7"/><text class="text" x="45" y="102">RETURNS</text><a xlink:href="../../syntaxresources/grammardiagrams#data-type"><rect class="rule" x="122" y="85" width="80" height="25"/><text class="text" x="132" y="102">datatype</text></a><rect class="literal" x="35" y="145" width="77" height="25" rx="7"/><text class="text" x="45" y="162">RETURNS</text><rect class="literal" x="122" y="145" width="58" height="25" rx="7"/><text class="text" x="132" y="162">TABLE</text><rect class="literal" x="190" y="145" width="25" height="25" rx="7"/><text class="text" x="200" y="162">(</text><rect class="literal" x="331" y="115" width="24" height="25" rx="7"/><text class="text" x="341" y="132">,</text><a xlink:href="../../syntaxresources/grammardiagrams#column-name"><rect class="rule" x="245" y="145" width="106" height="25"/><text class="text" x="255" y="162">columnname</text></a><a xlink:href="../../syntaxresources/grammardiagrams#data-type"><rect class="rule" x="361" y="145" width="80" height="25"/><text class="text" x="371" y="162">datatype</text></a><rect class="literal" x="471" y="145" width="25" height="25" rx="7"/><text class="text" x="481" y="162">)</text><a xlink:href="../../syntaxresources/grammardiagrams#unalterable-fn-attribute"><rect class="rule" x="55" y="195" width="167" height="25"/><text class="text" x="65" y="212">unalterablefnattribute</text></a><a xlink:href="../../syntaxresources/grammardiagrams#alterable-fn-only-attribute"><rect class="rule" x="55" y="225" width="184" height="25"/><text class="text" x="65" y="242">alterablefnonlyattribute</text></a><a xlink:href="../../syntaxresources/grammardiagrams#alterable-fn-and-proc-attribute"><rect class="rule" x="55" y="255" width="214" height="25"/><text class="text" x="65" y="272">alterablefnandprocattribute</text></a><polygon points="320,219 324,219 324,205 320,205" style="fill:black;stroke-width:0"/></svg> <svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"

width="806" height="160" viewbox="0 0 806 160"><path class="connector" d="M0 52h15m67 0h30m37 0h10m74 0h20m-156 0q5 0 5 5v8q0 5 5 5h131q5 0 5-5v-8q0-5 5-5m5 0h10m94 0h10m133 0h10m25 0h50m-5 0q-5 0-5-5v-20q0-5 5-5h58m24 0h59q5 0 5 5v20q0 5-5 5m-5 0h40m-206 0q5 0 5 5v8q0 5 5 5h181q5 0 5-5v-8q0-5 5-5m5 0h10m25 0h7m2 0h2m2 0h2m-806 65h2m2 0h2m2 0h27m-5 0q-5 0-5-5v-17q0-5 5-5h264q5 0 5 5v17q0 5-5 5m-259 0h20m180 0h54m-249 0q5 0 5 5v20q0 5 5 5h5m214 0h5q5 0 5-5v-20q0-5 5-5m5 0h35"/><polygon points="0,59 5,52 0,45" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="35" width="67" height="25" rx="7"/><text class="text" x="25" y="52">CREATE</text><rect class="literal" x="112" y="35" width="37" height="25" rx="7"/><text class="text" x="122" y="52">OR</text><rect class="literal" x="159" y="35" width="74" height="25" rx="7"/><text class="text" x="169" y="52">REPLACE</text><rect class="literal" x="263" y="35" width="94" height="25" rx="7"/><text class="text" x="273" y="52">PROCEDURE</text><a xlink:href="../../syntaxresources/grammardiagrams#subprogram-name"><rect class="rule" x="367" y="35" width="133" height="25"/><text class="text" x="377" y="52">subprogramname</text></a><rect class="literal" x="510" y="35" width="25" height="25" rx="7"/><text class="text" x="520" y="52">(</text><rect class="literal" x="638" y="5" width="24" height="25" rx="7"/><text class="text" x="648" y="22">,</text><a xlink:href="../../syntaxresources/grammardiagrams#arg-decl-with-dflt"><rect class="rule" x="585" y="35" width="131" height="25"/><text class="text" x="595" y="52">argdeclwithdflt</text></a><rect class="literal" x="766" y="35" width="25" height="25" rx="7"/><text class="text" x="776" y="52">)</text><a xlink:href="../../syntaxresources/grammardiagrams#unalterable-proc-attribute"><rect class="rule" x="55" y="100" width="180" height="25"/><text class="text" x="65" y="117">unalterableprocattribute</text></a><a xlink:href="../../syntaxresources/grammardiagrams#alterable-fn-and-proc-attribute"><rect class="rule" x="55" y="130" width="214" height="25"/><text class="text" x="65" y="147">alterablefnandprocattribute</text></a><polygon points="320,124 324,124 324,110 320,110" style="fill:black;stroke-width:0"/></svg> <svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="599" height="160" viewbox="0 0 599 160"><path class="connector" d="M0 22h15m58 0h10m83 0h10m133 0h10m25 0h30m155 0h20m-190 0q5 0 5 5v8q0 5 5 5h165q5 0 5-5v-8q0-5 5-5m5 0h10m25 0h7m2 0h2m2 0h2m-599 50h2m2 0h2m2 0h27m202 0h241m-458 0q5 0 5 5v35q0 5 5 5h25m-5 0q-5 0-5-5v-17q0-5 5-5h264q5 0 5 5v17q0 5-5 5m-259 0h20m214 0h20m-249 0q5 0 5 5v20q0 5 5 5h5m184 0h35q5 0 5-5v-20q0-5 5-5m5 0h50m79 0h20m-114 0q5 0 5 5v8q0 5 5 5h89q5 0 5-5v-8q0-5 5-5m5 0h5q5 0 5-5v-35q0-5 5-5m5 0h15"/><polygon points="0,29 5,22 0,15" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="5" width="58" height="25" rx="7"/><text class="text" x="25" y="22">ALTER</text><rect class="literal" x="83" y="5" width="83" height="25" rx="7"/><text class="text" x="93" y="22">FUNCTION</text><a xlink:href="../../syntaxresources/grammardiagrams#subprogram-name"><rect class="rule" x="176" y="5" width="133" height="25"/><text class="text" x="186" y="22">subprogramname</text></a><rect class="literal" x="319" y="5" width="25" height="25" rx="7"/><text class="text" x="329" y="22">(</text><a xlink:href="../../syntaxresources/grammardiagrams#subprogram-signature"><rect class="rule" x="374" y="5" width="155" height="25"/><text class="text" x="384" y="22">subprogramsignature</text></a><rect class="literal" x="559" y="5" width="25" height="25" rx="7"/><text class="text" x="569" y="22">)</text><a xlink:href="../../syntaxresources/grammardiagrams#special-fn-and-proc-attribute"><rect class="rule" x="35" y="55" width="202" height="25"/><text class="text" x="45" y="72">specialfnandprocattribute</text></a><a xlink:href="../../syntaxresources/grammardiagrams#alterable-fn-and-proc-attribute"><rect class="rule" x="75" y="100" width="214" height="25"/><text class="text" x="85" y="117">alterablefnandprocattribute</text></a><a xlink:href="../../syntaxresources/grammardiagrams#alterable-fn-only-attribute"><rect class="rule" x="75" y="130" width="184" height="25"/><text class="text" x="85" y="147">alterablefnonly_attribute</text></a><rect class="literal" x="359" y="100" width="79" height="25" rx="7"/><text class="text" x="369" y="117">RESTRICT</text><polygon points="489,79 493,79 493,65 489,65" style="fill:black;stroke-width:0"/></svg> <svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="610" height="145" viewbox="0 0 610 145"><path class="connector" d="M0 22h15m58 0h10m94 0h10m133 0h10m25 0h30m155 0h20m-190 0q5 0 5 5v8q0 5 5 5h165q5 0 5-5v-8q0-5 5-5m5 0h10m25 0h7m2 0h2m2 0h2m-610 50h2m2 0h2m2 0h27m202 0h201m-418 0q5 0 5 5v35q0 5 5 5h25m-5 0q-5 0-5-5v-17q0-5 5-5h224q5 0 5 5v17q0 5-5 5m-5 0h50m79 0h20m-114 0q5 0 5 5v8q0 5 5 5h89q5 0 5-5v-8q0-5 5-5m5 0h5q5 0 5-5v-35q0-5 5-5m5 0h15"/><polygon points="0,29 5,22 0,15" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="5" width="58" height="25" rx="7"/><text class="text" x="25" y="22">ALTER</text><rect class="literal" x="83" y="5" width="94" height="25" rx="7"/><text class="text" x="93" y="22">PROCEDURE</text><a xlink:href="../../syntaxresources/grammardiagrams#subprogram-name"><rect class="rule" x="187" y="5" width="133" height="25"/><text class="text" x="197" y="22">subprogramname</text></a><rect class="literal" x="330" y="5" width="25" height="25" rx="7"/><text class="text" x="340" y="22">(</text><a xlink:href="../../syntaxresources/grammardiagrams#subprogram-signature"><rect class="rule" x="385" y="5" width="155" height="25"/><text class="text" x="395" y="22">subprogramsignature</text></a><rect class="literal" x="570" y="5" width="25" height="25" rx="7"/><text class="text" x="580" y="22">)</text><a xlink:href="../../syntaxresources/grammardiagrams#special-fn-and-proc-attribute"><rect class="rule" x="35" y="55" width="202" height="25"/><text class="text" x="45" y="72">specialfnandprocattribute</text></a><a xlink:href="../../syntaxresources/grammardiagrams#alterable-fn-and-proc-attribute"><rect class="rule" x="55" y="100" width="214" height="25"/><text class="text" x="65" y="117">alterablefnandprocattribute</text></a><rect class="literal" x="319" y="100" width="79" height="25" rx="7"/><text class="text" x="329" y="117">RESTRICT</text><polygon points="449,79 453,79 453,65 449,65" style="fill:black;stroke-width:0"/></svg>