Skip to content

Commit

Permalink
No-op UPDATE ONLY/DELETE ONLY syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ericharmeling committed Oct 14, 2020
1 parent 54b2ed1 commit e947fb7
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 132 deletions.
122 changes: 75 additions & 47 deletions _includes/v20.2/sql/diagrams/delete.html
Original file line number Diff line number Diff line change
@@ -1,52 +1,80 @@
<div><svg width="689" height="471">
<div><svg width="682" height="470">
<polygon points="9 61 1 57 1 65"></polygon>
<polygon points="17 61 9 57 9 65"></polygon>
<rect x="51" y="47" width="58" height="32" rx="10"></rect>
<rect x="49" y="45" width="58" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="59" y="65">WITH</text>
<rect x="149" y="79" width="98" height="32" rx="10"></rect>
<rect x="147" y="77" width="98" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="157" y="97">RECURSIVE</text><a xlink:href="sql-grammar.html#common_table_expr" xlink:title="common_table_expr">
<rect x="307" y="47" width="150" height="32"></rect>
<rect x="305" y="45" width="150" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="315" y="65">common_table_expr</text></a><rect x="307" y="3" width="24" height="32" rx="10"></rect>
<rect x="305" y="1" width="24" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="315" y="21">,</text>
<rect x="517" y="47" width="70" height="32" rx="10"></rect>
<rect x="515" y="45" width="70" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="525" y="65">DELETE</text>
<rect x="607" y="47" width="60" height="32" rx="10"></rect>
<rect x="605" y="45" width="60" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="615" y="65">FROM</text><a xlink:href="sql-grammar.html#table_name" xlink:title="table_name">
<rect x="81" y="161" width="96" height="32"></rect>
<rect x="79" y="159" width="96" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="89" y="179">table_name</text></a><a xlink:href="sql-grammar.html#opt_index_flags" xlink:title="opt_index_flags">
<rect x="197" y="161" width="122" height="32"></rect>
<rect x="195" y="159" width="122" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="205" y="179">opt_index_flags</text></a><rect x="379" y="225" width="38" height="32" rx="10"></rect>
<rect x="377" y="223" width="38" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="387" y="243">AS</text><a xlink:href="sql-grammar.html#table_alias_name" xlink:title="table_alias_name">
<rect x="457" y="193" width="134" height="32"></rect>
<rect x="455" y="191" width="134" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="465" y="211">table_alias_name</text></a><rect x="115" y="307" width="70" height="32" rx="10"></rect>
<rect x="113" y="305" width="70" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="123" y="325">WHERE</text><a xlink:href="sql-grammar.html#a_expr" xlink:title="a_expr">
<rect x="205" y="307" width="64" height="32"></rect>
<rect x="203" y="305" width="64" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="213" y="325">a_expr</text></a><a xlink:href="sql-grammar.html#sort_clause" xlink:title="sort_clause">
<rect x="329" y="307" width="94" height="32"></rect>
<rect x="327" y="305" width="94" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="337" y="325">sort_clause</text></a><a xlink:href="sql-grammar.html#limit_clause" xlink:title="limit_clause">
<rect x="483" y="307" width="94" height="32"></rect>
<rect x="481" y="305" width="94" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="491" y="325">limit_clause</text></a><rect x="395" y="393" width="100" height="32" rx="10"></rect>
<rect x="393" y="391" width="100" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="403" y="411">RETURNING</text><a xlink:href="sql-grammar.html#target_list" xlink:title="target_list">
<rect x="535" y="393" width="86" height="32"></rect>
<rect x="533" y="391" width="86" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="543" y="411">target_list</text></a><rect x="535" y="437" width="86" height="32" rx="10"></rect>
<rect x="533" y="435" width="86" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="543" y="455">NOTHING</text>
<path class="line" d="m17 61 h2 m20 0 h10 m58 0 h10 m20 0 h10 m0 0 h108 m-138 0 h20 m118 0 h20 m-158 0 q10 0 10 10 m138 0 q0 -10 10 -10 m-148 10 v12 m138 0 v-12 m-138 12 q0 10 10 10 m118 0 q10 0 10 -10 m-128 10 h10 m98 0 h10 m40 -32 h10 m150 0 h10 m-190 0 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m170 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-170 0 h10 m24 0 h10 m0 0 h126 m-446 44 h20 m446 0 h20 m-486 0 q10 0 10 10 m466 0 q0 -10 10 -10 m-476 10 v46 m466 0 v-46 m-466 46 q0 10 10 10 m446 0 q10 0 10 -10 m-456 10 h10 m0 0 h436 m20 -66 h10 m70 0 h10 m0 0 h10 m60 0 h10 m2 0 l2 0 m2 0 l2 0 m2 0 l2 0 m-630 114 l2 0 m2 0 l2 0 m2 0 l2 0 m2 0 h10 m96 0 h10 m0 0 h10 m122 0 h10 m20 0 h10 m0 0 h242 m-272 0 h20 m252 0 h20 m-292 0 q10 0 10 10 m272 0 q0 -10 10 -10 m-282 10 v12 m272 0 v-12 m-272 12 q0 10 10 10 m252 0 q10 0 10 -10 m-242 10 h10 m0 0 h48 m-78 0 h20 m58 0 h20 m-98 0 q10 0 10 10 m78 0 q0 -10 10 -10 m-88 10 v12 m78 0 v-12 m-78 12 q0 10 10 10 m58 0 q10 0 10 -10 m-68 10 h10 m38 0 h10 m20 -32 h10 m134 0 h10 m22 -32 l2 0 m2 0 l2 0 m2 0 l2 0 m-560 114 l2 0 m2 0 l2 0 m2 0 l2 0 m22 0 h10 m0 0 h164 m-194 0 h20 m174 0 h20 m-214 0 q10 0 10 10 m194 0 q0 -10 10 -10 m-204 10 v12 m194 0 v-12 m-194 12 q0 10 10 10 m174 0 q10 0 10 -10 m-184 10 h10 m70 0 h10 m0 0 h10 m64 0 h10 m40 -32 h10 m0 0 h104 m-134 0 h20 m114 0 h20 m-154 0 q10 0 10 10 m134 0 q0 -10 10 -10 m-144 10 v12 m134 0 v-12 m-134 12 q0 10 10 10 m114 0 q10 0 10 -10 m-124 10 h10 m94 0 h10 m40 -32 h10 m0 0 h104 m-134 0 h20 m114 0 h20 m-154 0 q10 0 10 10 m134 0 q0 -10 10 -10 m-144 10 v12 m134 0 v-12 m-134 12 q0 10 10 10 m114 0 q10 0 10 -10 m-124 10 h10 m94 0 h10 m22 -32 l2 0 m2 0 l2 0 m2 0 l2 0 m-266 86 l2 0 m2 0 l2 0 m2 0 l2 0 m22 0 h10 m0 0 h256 m-286 0 h20 m266 0 h20 m-306 0 q10 0 10 10 m286 0 q0 -10 10 -10 m-296 10 v12 m286 0 v-12 m-286 12 q0 10 10 10 m266 0 q10 0 10 -10 m-276 10 h10 m100 0 h10 m20 0 h10 m86 0 h10 m-126 0 h20 m106 0 h20 m-146 0 q10 0 10 10 m126 0 q0 -10 10 -10 m-136 10 v24 m126 0 v-24 m-126 24 q0 10 10 10 m106 0 q10 0 10 -10 m-116 10 h10 m86 0 h10 m43 -76 h-3"></path>
<polygon points="679 375 687 371 687 379"></polygon>
<polygon points="679 375 671 371 671 379"></polygon></svg></div>
<rect x="149" y="79" width="96" height="32" rx="10"></rect>
<rect x="147" y="77" width="96" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="157" y="97">RECURSIVE</text>
<a xlink:href="sql-grammar.html#common_table_expr" xlink:title="common_table_expr">
<rect x="305" y="47" width="148" height="32"></rect>
<rect x="303" y="45" width="148" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="313" y="65">common_table_expr</text>
</a>
<rect x="305" y="3" width="24" height="32" rx="10"></rect>
<rect x="303" y="1" width="24" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="313" y="21">,</text>
<rect x="513" y="47" width="70" height="32" rx="10"></rect>
<rect x="511" y="45" width="70" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="521" y="65">DELETE</text>
<rect x="603" y="47" width="58" height="32" rx="10"></rect>
<rect x="601" y="45" width="58" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="611" y="65">FROM</text>
<rect x="143" y="193" width="58" height="32" rx="10"></rect>
<rect x="141" y="191" width="58" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="151" y="211">ONLY</text>
<a xlink:href="sql-grammar.html#table_name" xlink:title="table_name">
<rect x="241" y="161" width="94" height="32"></rect>
<rect x="239" y="159" width="94" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="249" y="179">table_name</text>
</a>
<a xlink:href="sql-grammar.html#opt_index_flags" xlink:title="opt_index_flags">
<rect x="355" y="161" width="120" height="32"></rect>
<rect x="353" y="159" width="120" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="363" y="179">opt_index_flags</text>
</a>
<rect x="515" y="193" width="28" height="32" rx="10"></rect>
<rect x="513" y="191" width="28" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="523" y="211">*</text>
<rect x="66" y="307" width="38" height="32" rx="10"></rect>
<rect x="64" y="305" width="38" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="74" y="325">AS</text>
<a xlink:href="sql-grammar.html#table_alias_name" xlink:title="table_alias_name">
<rect x="144" y="275" width="132" height="32"></rect>
<rect x="142" y="273" width="132" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="152" y="293">table_alias_name</text>
</a>
<rect x="336" y="275" width="68" height="32" rx="10"></rect>
<rect x="334" y="273" width="68" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="344" y="293">WHERE</text>
<a xlink:href="sql-grammar.html#a_expr" xlink:title="a_expr">
<rect x="424" y="275" width="64" height="32"></rect>
<rect x="422" y="273" width="64" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="432" y="293">a_expr</text>
</a>
<a xlink:href="sql-grammar.html#sort_clause" xlink:title="sort_clause">
<rect x="548" y="275" width="92" height="32"></rect>
<rect x="546" y="273" width="92" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="556" y="293">sort_clause</text>
</a>
<a xlink:href="sql-grammar.html#limit_clause" xlink:title="limit_clause">
<rect x="239" y="393" width="92" height="32"></rect>
<rect x="237" y="391" width="92" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="247" y="411">limit_clause</text>
</a>
<rect x="391" y="393" width="100" height="32" rx="10"></rect>
<rect x="389" y="391" width="100" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="399" y="411">RETURNING</text>
<a xlink:href="sql-grammar.html#target_list" xlink:title="target_list">
<rect x="531" y="393" width="84" height="32"></rect>
<rect x="529" y="391" width="84" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="539" y="411">target_list</text>
</a>
<rect x="531" y="437" width="84" height="32" rx="10"></rect>
<rect x="529" y="435" width="84" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="539" y="455">NOTHING</text>
<path class="line" d="m17 61 h2 m20 0 h10 m58 0 h10 m20 0 h10 m0 0 h106 m-136 0 h20 m116 0 h20 m-156 0 q10 0 10 10 m136 0 q0 -10 10 -10 m-146 10 v12 m136 0 v-12 m-136 12 q0 10 10 10 m116 0 q10 0 10 -10 m-126 10 h10 m96 0 h10 m40 -32 h10 m148 0 h10 m-188 0 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m168 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-168 0 h10 m24 0 h10 m0 0 h124 m-442 44 h20 m442 0 h20 m-482 0 q10 0 10 10 m462 0 q0 -10 10 -10 m-472 10 v46 m462 0 v-46 m-462 46 q0 10 10 10 m442 0 q10 0 10 -10 m-452 10 h10 m0 0 h432 m20 -66 h10 m70 0 h10 m0 0 h10 m58 0 h10 m2 0 l2 0 m2 0 l2 0 m2 0 l2 0 m-582 114 l2 0 m2 0 l2 0 m2 0 l2 0 m22 0 h10 m0 0 h68 m-98 0 h20 m78 0 h20 m-118 0 q10 0 10 10 m98 0 q0 -10 10 -10 m-108 10 v12 m98 0 v-12 m-98 12 q0 10 10 10 m78 0 q10 0 10 -10 m-88 10 h10 m58 0 h10 m20 -32 h10 m94 0 h10 m0 0 h10 m120 0 h10 m20 0 h10 m0 0 h38 m-68 0 h20 m48 0 h20 m-88 0 q10 0 10 10 m68 0 q0 -10 10 -10 m-78 10 v12 m68 0 v-12 m-68 12 q0 10 10 10 m48 0 q10 0 10 -10 m-58 10 h10 m28 0 h10 m22 -32 l2 0 m2 0 l2 0 m2 0 l2 0 m-581 82 l2 0 m2 0 l2 0 m2 0 l2 0 m22 0 h10 m0 0 h240 m-270 0 h20 m250 0 h20 m-290 0 q10 0 10 10 m270 0 q0 -10 10 -10 m-280 10 v12 m270 0 v-12 m-270 12 q0 10 10 10 m250 0 q10 0 10 -10 m-240 10 h10 m0 0 h48 m-78 0 h20 m58 0 h20 m-98 0 q10 0 10 10 m78 0 q0 -10 10 -10 m-88 10 v12 m78 0 v-12 m-78 12 q0 10 10 10 m58 0 q10 0 10 -10 m-68 10 h10 m38 0 h10 m20 -32 h10 m132 0 h10 m40 -32 h10 m0 0 h162 m-192 0 h20 m172 0 h20 m-212 0 q10 0 10 10 m192 0 q0 -10 10 -10 m-202 10 v12 m192 0 v-12 m-192 12 q0 10 10 10 m172 0 q10 0 10 -10 m-182 10 h10 m68 0 h10 m0 0 h10 m64 0 h10 m40 -32 h10 m0 0 h102 m-132 0 h20 m112 0 h20 m-152 0 q10 0 10 10 m132 0 q0 -10 10 -10 m-142 10 v12 m132 0 v-12 m-132 12 q0 10 10 10 m112 0 q10 0 10 -10 m-122 10 h10 m92 0 h10 m22 -32 l2 0 m2 0 l2 0 m2 0 l2 0 m-485 118 l2 0 m2 0 l2 0 m2 0 l2 0 m22 0 h10 m0 0 h102 m-132 0 h20 m112 0 h20 m-152 0 q10 0 10 10 m132 0 q0 -10 10 -10 m-142 10 v12 m132 0 v-12 m-132 12 q0 10 10 10 m112 0 q10 0 10 -10 m-122 10 h10 m92 0 h10 m40 -32 h10 m0 0 h254 m-284 0 h20 m264 0 h20 m-304 0 q10 0 10 10 m284 0 q0 -10 10 -10 m-294 10 v12 m284 0 v-12 m-284 12 q0 10 10 10 m264 0 q10 0 10 -10 m-274 10 h10 m100 0 h10 m20 0 h10 m84 0 h10 m-124 0 h20 m104 0 h20 m-144 0 q10 0 10 10 m124 0 q0 -10 10 -10 m-134 10 v24 m124 0 v-24 m-124 24 q0 10 10 10 m104 0 q10 0 10 -10 m-114 10 h10 m84 0 h10 m43 -76 h-3"></path>
<polygon points="673 375 681 371 681 379"></polygon>
<polygon points="673 375 665 371 665 379"></polygon>
</svg></div>
Loading

0 comments on commit e947fb7

Please sign in to comment.