-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameter updates Diagram updates Examples now use MovR Code PRs: cockroachdb/cockroach#38589 cockroachdb/cockroach#38904 Fixes #5190
- Loading branch information
1 parent
060850c
commit d1f6003
Showing
11 changed files
with
2,920 additions
and
2,455 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div><svg width="371" height="113"> | ||
<polygon points="9 33 1 29 1 37"></polygon> | ||
<polygon points="17 33 9 29 9 37"></polygon> | ||
<rect x="91" y="19" width="84" height="32" rx="10"></rect> | ||
<rect x="89" y="17" width="84" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="99" y="37">PRIMARY</text> | ||
<rect x="195" y="19" width="46" height="32" rx="10"></rect> | ||
<rect x="193" y="17" width="46" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="203" y="37">KEY</text> | ||
<rect x="91" y="63" width="72" height="32" rx="10"></rect> | ||
<rect x="89" y="61" width="72" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="99" y="81">FAMILY</text><a xlink:href="sql-grammar.html#family_name" xlink:title="family_name"> | ||
<rect x="183" y="63" width="100" height="32"></rect> | ||
<rect x="181" y="61" width="100" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="191" y="81">family_name</text></a><path class="line" d="m17 33 h2 m60 0 h10 m84 0 h10 m0 0 h10 m46 0 h10 m0 0 h42 m-232 0 h20 m212 0 h20 m-252 0 q10 0 10 10 m232 0 q0 -10 10 -10 m-242 10 v24 m232 0 v-24 m-232 24 q0 10 10 10 m212 0 q10 0 10 -10 m-222 10 h10 m72 0 h10 m0 0 h10 m100 0 h10 m-252 -44 l20 0 m-1 0 q-9 0 -9 -10 l0 -12 q0 -10 10 -10 m252 32 l20 0 m-20 0 q10 0 10 -10 l0 -12 q0 -10 -10 -10 m-252 0 h10 m0 0 h242 m-292 32 h20 m292 0 h20 m-332 0 q10 0 10 10 m312 0 q0 -10 10 -10 m-322 10 v58 m312 0 v-58 m-312 58 q0 10 10 10 m292 0 q10 0 10 -10 m-302 10 h10 m0 0 h282 m23 -78 h-3"></path> | ||
<polygon points="361 33 369 29 369 37"></polygon> | ||
<polygon points="361 33 353 29 353 37"></polygon></svg></div> |
20 changes: 20 additions & 0 deletions
20
_includes/v19.2/sql/diagrams/create_as_constraint_def.html
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,20 @@ | ||
<div><svg width="459" height="37"> | ||
<polygon points="9 17 1 13 1 21"></polygon> | ||
<polygon points="17 17 9 13 9 21"></polygon> | ||
<rect x="31" y="3" width="84" height="32" rx="10"></rect> | ||
<rect x="29" y="1" width="84" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="39" y="21">PRIMARY</text> | ||
<rect x="135" y="3" width="46" height="32" rx="10"></rect> | ||
<rect x="133" y="1" width="46" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="143" y="21">KEY</text> | ||
<rect x="201" y="3" width="26" height="32" rx="10"></rect> | ||
<rect x="199" y="1" width="26" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="209" y="21">(</text><a xlink:href="sql-grammar.html#create_as_params" xlink:title="create_as_params"> | ||
<rect x="247" y="3" width="138" height="32"></rect> | ||
<rect x="245" y="1" width="138" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="255" y="21">create_as_params</text></a><rect x="405" y="3" width="26" height="32" rx="10"></rect> | ||
<rect x="403" y="1" width="26" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="413" y="21">)</text> | ||
<path class="line" d="m17 17 h2 m0 0 h10 m84 0 h10 m0 0 h10 m46 0 h10 m0 0 h10 m26 0 h10 m0 0 h10 m138 0 h10 m0 0 h10 m26 0 h10 m3 0 h-3"></path> | ||
<polygon points="449 17 457 13 457 21"></polygon> | ||
<polygon points="449 17 441 13 441 21"></polygon></svg></div> |
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,67 +1,48 @@ | ||
<div><svg width="612" height="326"> | ||
|
||
<polygon points="9 17 1 13 1 21"></polygon> | ||
<polygon points="17 17 9 13 9 21"></polygon> | ||
<rect x="31" y="3" width="72" height="32" rx="10"></rect> | ||
<rect x="29" y="1" width="72" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="39" y="21">CREATE</text> | ||
<rect x="123" y="3" width="62" height="32" rx="10"></rect> | ||
<rect x="121" y="1" width="62" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="131" y="21">TABLE</text> | ||
<rect x="225" y="35" width="34" height="32" rx="10"></rect> | ||
<rect x="223" y="33" width="34" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="233" y="53">IF</text> | ||
<rect x="279" y="35" width="48" height="32" rx="10"></rect> | ||
<rect x="277" y="33" width="48" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="287" y="53">NOT</text> | ||
<rect x="347" y="35" width="68" height="32" rx="10"></rect> | ||
<rect x="345" y="33" width="68" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="355" y="53">EXISTS</text> | ||
<a xlink:href="sql-grammar.html#table_name" xlink:title="table_name"> | ||
<rect x="455" y="3" width="90" height="32"></rect> | ||
<rect x="453" y="1" width="90" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="463" y="21">table_name</text> | ||
</a> | ||
<rect x="565" y="3" width="26" height="32" rx="10"></rect> | ||
<rect x="563" y="1" width="26" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="573" y="21">(</text> | ||
<a xlink:href="sql-grammar.html#column_def" xlink:title="column_def"> | ||
<rect x="99" y="145" width="90" height="32"></rect> | ||
<rect x="97" y="143" width="90" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="107" y="163">column_def</text> | ||
</a> | ||
<a xlink:href="sql-grammar.html#index_def" xlink:title="index_def"> | ||
<rect x="99" y="189" width="78" height="32"></rect> | ||
<rect x="97" y="187" width="78" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="107" y="207">index_def</text> | ||
</a> | ||
<a xlink:href="sql-grammar.html#family_def" xlink:title="family_def"> | ||
<rect x="99" y="233" width="82" height="32"></rect> | ||
<rect x="97" y="231" width="82" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="107" y="251">family_def</text> | ||
</a> | ||
<a xlink:href="sql-grammar.html#table_constraint" xlink:title="table_constraint"> | ||
<rect x="99" y="277" width="116" height="32"></rect> | ||
<rect x="97" y="275" width="116" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="107" y="295">table_constraint</text> | ||
</a> | ||
<rect x="79" y="101" width="24" height="32" rx="10"></rect> | ||
<rect x="77" y="99" width="24" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="87" y="119">,</text> | ||
<rect x="295" y="145" width="26" height="32" rx="10"></rect> | ||
<rect x="293" y="143" width="26" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="303" y="163">)</text> | ||
<a xlink:href="sql-grammar.html#opt_interleave" xlink:title="opt_interleave"> | ||
<rect x="341" y="145" width="106" height="32"></rect> | ||
<rect x="339" y="143" width="106" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="349" y="163">opt_interleave</text> | ||
</a> | ||
<a xlink:href="sql-grammar.html#opt_partition_by" xlink:title="opt_partition_by"> | ||
<rect x="467" y="145" width="118" height="32"></rect> | ||
<rect x="465" y="143" width="118" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="475" y="163">opt_partition_by</text> | ||
</a> | ||
<path class="line" d="m17 17 h2 m0 0 h10 m72 0 h10 m0 0 h10 m62 0 h10 m20 0 h10 m0 0 h200 m-230 0 h20 m210 0 h20 m-250 0 q10 0 10 10 m230 0 q0 -10 10 -10 m-240 10 v12 m230 0 v-12 m-230 12 q0 10 10 10 m210 0 q10 0 10 -10 m-220 10 h10 m34 0 h10 m0 0 h10 m48 0 h10 m0 0 h10 m68 0 h10 m20 -32 h10 m90 0 h10 m0 0 h10 m26 0 h10 m2 0 l2 0 m2 0 l2 0 m2 0 l2 0 m-596 142 l2 0 m2 0 l2 0 m2 0 l2 0 m62 0 h10 m90 0 h10 m0 0 h26 m-156 0 h20 m136 0 h20 m-176 0 q10 0 10 10 m156 0 q0 -10 10 -10 m-166 10 v24 m156 0 v-24 m-156 24 q0 10 10 10 m136 0 q10 0 10 -10 m-146 10 h10 m78 0 h10 m0 0 h38 m-146 -10 v20 m156 0 v-20 m-156 20 v24 m156 0 v-24 m-156 24 q0 10 10 10 m136 0 q10 0 10 -10 m-146 10 h10 m82 0 h10 m0 0 h34 m-146 -10 v20 m156 0 v-20 m-156 20 v24 m156 0 v-24 m-156 24 q0 10 10 10 m136 0 q10 0 10 -10 m-146 10 h10 m116 0 h10 m-176 -132 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m176 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-176 0 h10 m24 0 h10 m0 0 h132 m-216 44 h20 m216 0 h20 m-256 0 q10 0 10 10 m236 0 q0 -10 10 -10 m-246 10 v146 m236 0 v-146 m-236 146 q0 10 10 10 m216 0 q10 0 10 -10 m-226 10 h10 m0 0 h206 m20 -166 h10 m26 0 h10 m0 0 h10 m106 0 h10 m0 0 h10 m118 0 h10 m3 0 h-3"></path> | ||
<polygon points="603 159 611 155 611 163"></polygon> | ||
<polygon points="603 159 595 155 595 163"></polygon> | ||
</svg></div> | ||
<div><svg width="621" height="327"> | ||
<polygon points="9 17 1 13 1 21"></polygon> | ||
<polygon points="17 17 9 13 9 21"></polygon> | ||
<rect x="31" y="3" width="72" height="32" rx="10"></rect> | ||
<rect x="29" y="1" width="72" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="39" y="21">CREATE</text> | ||
<rect x="123" y="3" width="62" height="32" rx="10"></rect> | ||
<rect x="121" y="1" width="62" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="131" y="21">TABLE</text> | ||
<rect x="225" y="35" width="34" height="32" rx="10"></rect> | ||
<rect x="223" y="33" width="34" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="233" y="53">IF</text> | ||
<rect x="279" y="35" width="48" height="32" rx="10"></rect> | ||
<rect x="277" y="33" width="48" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="287" y="53">NOT</text> | ||
<rect x="347" y="35" width="70" height="32" rx="10"></rect> | ||
<rect x="345" y="33" width="70" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="355" y="53">EXISTS</text><a xlink:href="sql-grammar.html#table_name" xlink:title="table_name"> | ||
<rect x="457" y="3" width="96" height="32"></rect> | ||
<rect x="455" y="1" width="96" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="465" y="21">table_name</text></a><rect x="573" y="3" width="26" height="32" rx="10"></rect> | ||
<rect x="571" y="1" width="26" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="581" y="21">(</text><a xlink:href="sql-grammar.html#column_def" xlink:title="column_def"> | ||
<rect x="85" y="145" width="92" height="32"></rect> | ||
<rect x="83" y="143" width="92" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="93" y="163">column_def</text></a><a xlink:href="sql-grammar.html#index_def" xlink:title="index_def"> | ||
<rect x="85" y="189" width="82" height="32"></rect> | ||
<rect x="83" y="187" width="82" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="93" y="207">index_def</text></a><a xlink:href="sql-grammar.html#family_def" xlink:title="family_def"> | ||
<rect x="85" y="233" width="86" height="32"></rect> | ||
<rect x="83" y="231" width="86" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="93" y="251">family_def</text></a><a xlink:href="sql-grammar.html#table_constraint" xlink:title="table_constraint"> | ||
<rect x="85" y="277" width="124" height="32"></rect> | ||
<rect x="83" y="275" width="124" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="93" y="295">table_constraint</text></a><rect x="65" y="101" width="24" height="32" rx="10"></rect> | ||
<rect x="63" y="99" width="24" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="73" y="119">,</text> | ||
<rect x="289" y="145" width="26" height="32" rx="10"></rect> | ||
<rect x="287" y="143" width="26" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="297" y="163">)</text><a xlink:href="sql-grammar.html#opt_interleave" xlink:title="opt_interleave"> | ||
<rect x="335" y="145" width="112" height="32"></rect> | ||
<rect x="333" y="143" width="112" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="343" y="163">opt_interleave</text></a><a xlink:href="sql-grammar.html#opt_partition_by" xlink:title="opt_partition_by"> | ||
<rect x="467" y="145" width="126" height="32"></rect> | ||
<rect x="465" y="143" width="126" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="475" y="163">opt_partition_by</text></a><path class="line" d="m17 17 h2 m0 0 h10 m72 0 h10 m0 0 h10 m62 0 h10 m20 0 h10 m0 0 h202 m-232 0 h20 m212 0 h20 m-252 0 q10 0 10 10 m232 0 q0 -10 10 -10 m-242 10 v12 m232 0 v-12 m-232 12 q0 10 10 10 m212 0 q10 0 10 -10 m-222 10 h10 m34 0 h10 m0 0 h10 m48 0 h10 m0 0 h10 m70 0 h10 m20 -32 h10 m96 0 h10 m0 0 h10 m26 0 h10 m2 0 l2 0 m2 0 l2 0 m2 0 l2 0 m-618 142 l2 0 m2 0 l2 0 m2 0 l2 0 m62 0 h10 m92 0 h10 m0 0 h32 m-164 0 h20 m144 0 h20 m-184 0 q10 0 10 10 m164 0 q0 -10 10 -10 m-174 10 v24 m164 0 v-24 m-164 24 q0 10 10 10 m144 0 q10 0 10 -10 m-154 10 h10 m82 0 h10 m0 0 h42 m-154 -10 v20 m164 0 v-20 m-164 20 v24 m164 0 v-24 m-164 24 q0 10 10 10 m144 0 q10 0 10 -10 m-154 10 h10 m86 0 h10 m0 0 h38 m-154 -10 v20 m164 0 v-20 m-164 20 v24 m164 0 v-24 m-164 24 q0 10 10 10 m144 0 q10 0 10 -10 m-154 10 h10 m124 0 h10 m-184 -132 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m184 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-184 0 h10 m24 0 h10 m0 0 h140 m-224 44 h20 m224 0 h20 m-264 0 q10 0 10 10 m244 0 q0 -10 10 -10 m-254 10 v146 m244 0 v-146 m-244 146 q0 10 10 10 m224 0 q10 0 10 -10 m-234 10 h10 m0 0 h214 m20 -166 h10 m26 0 h10 m0 0 h10 m112 0 h10 m0 0 h10 m126 0 h10 m3 0 h-3"></path> | ||
<polygon points="611 159 619 155 619 163"></polygon> | ||
<polygon points="611 159 603 155 603 163"></polygon></svg></div> |
Oops, something went wrong.