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 for column families #422

Merged
merged 6 commits into from
Jun 28, 2016
Merged
Show file tree
Hide file tree
Changes from all 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
94 changes: 51 additions & 43 deletions _includes/sql/diagrams/col_qual_list.html
Original file line number Diff line number Diff line change
@@ -1,53 +1,61 @@
<svg width="660" height="276">
<svg width="700" height="320">

<polygon points="9 33 1 29 1 37"></polygon>
<polygon points="17 33 9 29 9 37"></polygon>
<rect x="91" y="51" width="108" height="32" rx="10"></rect>
<rect x="89" y="49" width="108" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="99" y="69">CONSTRAINT</text>
<rect x="111" y="51" width="108" height="32" rx="10"></rect>
<rect x="109" y="49" width="108" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="119" y="69">CONSTRAINT</text>
<a xlink:href="sql-grammar.html#name" xlink:title="name">
<rect x="219" y="51" width="54" height="32"></rect>
<rect x="217" y="49" width="54" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="227" y="69">name</text>
<rect x="239" y="51" width="54" height="32"></rect>
<rect x="237" y="49" width="54" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="247" y="69">name</text>
</a>
<rect x="353" y="51" width="48" height="32" rx="10"></rect>
<rect x="351" y="49" width="48" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="361" y="69">NOT</text>
<rect x="441" y="19" width="56" height="32" rx="10"></rect>
<rect x="439" y="17" width="56" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="449" y="37">NULL</text>
<rect x="333" y="95" width="74" height="32" rx="10"></rect>
<rect x="331" y="93" width="74" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="341" y="113">UNIQUE</text>
<rect x="333" y="139" width="82" height="32" rx="10"></rect>
<rect x="331" y="137" width="82" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="341" y="157">PRIMARY</text>
<rect x="435" y="139" width="46" height="32" rx="10"></rect>
<rect x="433" y="137" width="46" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="443" y="157">KEY</text>
<rect x="333" y="183" width="64" height="32" rx="10"></rect>
<rect x="331" y="181" width="64" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="341" y="201">CHECK</text>
<rect x="417" y="183" width="26" height="32" rx="10"></rect>
<rect x="415" y="181" width="26" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="425" y="201">(</text>
<rect x="373" y="51" width="48" height="32" rx="10"></rect>
<rect x="371" y="49" width="48" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="381" y="69">NOT</text>
<rect x="461" y="19" width="56" height="32" rx="10"></rect>
<rect x="459" y="17" width="56" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="469" y="37">NULL</text>
<rect x="353" y="95" width="74" height="32" rx="10"></rect>
<rect x="351" y="93" width="74" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="361" y="113">UNIQUE</text>
<rect x="353" y="139" width="82" height="32" rx="10"></rect>
<rect x="351" y="137" width="82" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="361" y="157">PRIMARY</text>
<rect x="455" y="139" width="46" height="32" rx="10"></rect>
<rect x="453" y="137" width="46" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="463" y="157">KEY</text>
<rect x="353" y="183" width="64" height="32" rx="10"></rect>
<rect x="351" y="181" width="64" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="361" y="201">CHECK</text>
<rect x="437" y="183" width="26" height="32" rx="10"></rect>
<rect x="435" y="181" width="26" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="445" y="201">(</text>
<a xlink:href="sql-grammar.html#a_expr" xlink:title="a_expr">
<rect x="463" y="183" width="64" height="32"></rect>
<rect x="461" y="181" width="64" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="471" y="201">a_expr</text>
<rect x="483" y="183" width="64" height="32"></rect>
<rect x="481" y="181" width="64" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="491" y="201">a_expr</text>
</a>
<rect x="547" y="183" width="26" height="32" rx="10"></rect>
<rect x="545" y="181" width="26" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="555" y="201">)</text>
<rect x="333" y="227" width="80" height="32" rx="10"></rect>
<rect x="331" y="225" width="80" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="341" y="245">DEFAULT</text>
<rect x="567" y="183" width="26" height="32" rx="10"></rect>
<rect x="565" y="181" width="26" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="575" y="201">)</text>
<rect x="353" y="227" width="80" height="32" rx="10"></rect>
<rect x="351" y="225" width="80" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="361" y="245">DEFAULT</text>
<a xlink:href="sql-grammar.html#b_expr" xlink:title="b_expr">
<rect x="433" y="227" width="64" height="32"></rect>
<rect x="431" y="225" width="64" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="441" y="245">b_expr</text>
<rect x="453" y="227" width="64" height="32"></rect>
<rect x="451" y="225" width="64" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="461" y="245">b_expr</text>
</a>
<path class="line" d="m17 33 h2 m60 0 h10 m0 0 h192 m-222 0 h20 m202 0 h20 m-242 0 q10 0 10 10 m222 0 q0 -10 10 -10 m-232 10 v12 m222 0 v-12 m-222 12 q0 10 10 10 m202 0 q10 0 10 -10 m-212 10 h10 m108 0 h10 m0 0 h10 m54 0 h10 m60 -32 h10 m0 0 h58 m-88 0 h20 m68 0 h20 m-108 0 q10 0 10 10 m88 0 q0 -10 10 -10 m-98 10 v12 m88 0 v-12 m-88 12 q0 10 10 10 m68 0 q10 0 10 -10 m-78 10 h10 m48 0 h10 m20 -32 h10 m56 0 h10 m0 0 h76 m-280 0 h20 m260 0 h20 m-300 0 q10 0 10 10 m280 0 q0 -10 10 -10 m-290 10 v56 m280 0 v-56 m-280 56 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m74 0 h10 m0 0 h166 m-270 -10 v20 m280 0 v-20 m-280 20 v24 m280 0 v-24 m-280 24 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m82 0 h10 m0 0 h10 m46 0 h10 m0 0 h92 m-270 -10 v20 m280 0 v-20 m-280 20 v24 m280 0 v-24 m-280 24 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m64 0 h10 m0 0 h10 m26 0 h10 m0 0 h10 m64 0 h10 m0 0 h10 m26 0 h10 m-270 -10 v20 m280 0 v-20 m-280 20 v24 m280 0 v-24 m-280 24 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m80 0 h10 m0 0 h10 m64 0 h10 m0 0 h76 m-542 -208 l20 0 m-1 0 q-9 0 -9 -10 l0 -12 q0 -10 10 -10 m542 32 l20 0 m-20 0 q10 0 10 -10 l0 -12 q0 -10 -10 -10 m-542 0 h10 m0 0 h532 m-582 32 h20 m582 0 h20 m-622 0 q10 0 10 10 m602 0 q0 -10 10 -10 m-612 10 v222 m602 0 v-222 m-602 222 q0 10 10 10 m582 0 q10 0 10 -10 m-592 10 h10 m0 0 h572 m23 -242 h-3"></path>
<polygon points="651 33 659 29 659 37"></polygon>
<polygon points="651 33 643 29 643 37"></polygon>
<rect x="91" y="271" width="72" height="32" rx="10"></rect>
<rect x="89" y="269" width="72" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="99" y="289">FAMILY</text>
<a xlink:href="sql-grammar.html#name" xlink:title="name">
<rect x="183" y="271" width="54" height="32"></rect>
<rect x="181" y="269" width="54" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="191" y="289">name</text>
</a>
<path class="line" d="m17 33 h2 m80 0 h10 m0 0 h192 m-222 0 h20 m202 0 h20 m-242 0 q10 0 10 10 m222 0 q0 -10 10 -10 m-232 10 v12 m222 0 v-12 m-222 12 q0 10 10 10 m202 0 q10 0 10 -10 m-212 10 h10 m108 0 h10 m0 0 h10 m54 0 h10 m60 -32 h10 m0 0 h58 m-88 0 h20 m68 0 h20 m-108 0 q10 0 10 10 m88 0 q0 -10 10 -10 m-98 10 v12 m88 0 v-12 m-88 12 q0 10 10 10 m68 0 q10 0 10 -10 m-78 10 h10 m48 0 h10 m20 -32 h10 m56 0 h10 m0 0 h76 m-280 0 h20 m260 0 h20 m-300 0 q10 0 10 10 m280 0 q0 -10 10 -10 m-290 10 v56 m280 0 v-56 m-280 56 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m74 0 h10 m0 0 h166 m-270 -10 v20 m280 0 v-20 m-280 20 v24 m280 0 v-24 m-280 24 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m82 0 h10 m0 0 h10 m46 0 h10 m0 0 h92 m-270 -10 v20 m280 0 v-20 m-280 20 v24 m280 0 v-24 m-280 24 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m64 0 h10 m0 0 h10 m26 0 h10 m0 0 h10 m64 0 h10 m0 0 h10 m26 0 h10 m-270 -10 v20 m280 0 v-20 m-280 20 v24 m280 0 v-24 m-280 24 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m80 0 h10 m0 0 h10 m64 0 h10 m0 0 h76 m-542 -208 h20 m542 0 h20 m-582 0 q10 0 10 10 m562 0 q0 -10 10 -10 m-572 10 v232 m562 0 v-232 m-562 232 q0 10 10 10 m542 0 q10 0 10 -10 m-552 10 h10 m72 0 h10 m0 0 h10 m54 0 h10 m0 0 h376 m-582 -252 l20 0 m-1 0 q-9 0 -9 -10 l0 -12 q0 -10 10 -10 m582 32 l20 0 m-20 0 q10 0 10 -10 l0 -12 q0 -10 -10 -10 m-582 0 h10 m0 0 h572 m-622 32 h20 m622 0 h20 m-662 0 q10 0 10 10 m642 0 q0 -10 10 -10 m-652 10 v266 m642 0 v-266 m-642 266 q0 10 10 10 m622 0 q10 0 10 -10 m-632 10 h10 m0 0 h612 m23 -286 h-3"></path>
<polygon points="691 33 699 29 699 37"></polygon>
<polygon points="691 33 683 29 683 37"></polygon>
</svg>
15 changes: 10 additions & 5 deletions _includes/sql/diagrams/create_table.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<svg width="606" height="282">
<svg width="606" height="326">

<polygon points="9 17 1 13 1 21"></polygon>
<polygon points="17 17 9 13 9 21"></polygon>
Expand Down Expand Up @@ -35,18 +35,23 @@
<rect x="349" y="187" width="82" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="359" y="207">index_def</text>
</a>
<a xlink:href="sql-grammar.html#family_def" xlink:title="family_def">
<rect x="351" y="233" width="84" height="32"></rect>
<rect x="349" y="231" width="84" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="359" y="251">family_def</text>
</a>
<a xlink:href="sql-grammar.html#table_constraint" xlink:title="table_constraint">
<rect x="351" y="233" width="122" height="32"></rect>
<rect x="349" y="231" width="122" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="359" y="251">table_constraint</text>
<rect x="351" y="277" width="122" height="32"></rect>
<rect x="349" y="275" width="122" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="359" y="295">table_constraint</text>
</a>
<rect x="331" y="101" width="24" height="32" rx="10"></rect>
<rect x="329" y="99" width="24" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="339" y="119">,</text>
<rect x="553" y="145" width="26" height="32" rx="10"></rect>
<rect x="551" y="143" width="26" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="561" y="163">)</text>
<path class="line" d="m17 17 h2 m0 0 h10 m70 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 m86 0 h10 m0 0 h10 m26 0 h10 m2 0 l2 0 m2 0 l2 0 m2 0 l2 0 m-338 142 l2 0 m2 0 l2 0 m2 0 l2 0 m62 0 h10 m92 0 h10 m0 0 h30 m-162 0 h20 m142 0 h20 m-182 0 q10 0 10 10 m162 0 q0 -10 10 -10 m-172 10 v24 m162 0 v-24 m-162 24 q0 10 10 10 m142 0 q10 0 10 -10 m-152 10 h10 m82 0 h10 m0 0 h40 m-152 -10 v20 m162 0 v-20 m-162 20 v24 m162 0 v-24 m-162 24 q0 10 10 10 m142 0 q10 0 10 -10 m-152 10 h10 m122 0 h10 m-182 -88 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m182 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-182 0 h10 m24 0 h10 m0 0 h138 m-222 44 h20 m222 0 h20 m-262 0 q10 0 10 10 m242 0 q0 -10 10 -10 m-252 10 v102 m242 0 v-102 m-242 102 q0 10 10 10 m222 0 q10 0 10 -10 m-232 10 h10 m0 0 h212 m20 -122 h10 m26 0 h10 m3 0 h-3"></path>
<path class="line" d="m17 17 h2 m0 0 h10 m70 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 m86 0 h10 m0 0 h10 m26 0 h10 m2 0 l2 0 m2 0 l2 0 m2 0 l2 0 m-338 142 l2 0 m2 0 l2 0 m2 0 l2 0 m62 0 h10 m92 0 h10 m0 0 h30 m-162 0 h20 m142 0 h20 m-182 0 q10 0 10 10 m162 0 q0 -10 10 -10 m-172 10 v24 m162 0 v-24 m-162 24 q0 10 10 10 m142 0 q10 0 10 -10 m-152 10 h10 m82 0 h10 m0 0 h40 m-152 -10 v20 m162 0 v-20 m-162 20 v24 m162 0 v-24 m-162 24 q0 10 10 10 m142 0 q10 0 10 -10 m-152 10 h10 m84 0 h10 m0 0 h38 m-152 -10 v20 m162 0 v-20 m-162 20 v24 m162 0 v-24 m-162 24 q0 10 10 10 m142 0 q10 0 10 -10 m-152 10 h10 m122 0 h10 m-182 -132 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m182 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-182 0 h10 m24 0 h10 m0 0 h138 m-222 44 h20 m222 0 h20 m-262 0 q10 0 10 10 m242 0 q0 -10 10 -10 m-252 10 v146 m242 0 v-146 m-242 146 q0 10 10 10 m222 0 q10 0 10 -10 m-232 10 h10 m0 0 h212 m20 -166 h10 m26 0 h10 m3 0 h-3"></path>
<polygon points="597 159 605 155 605 163"></polygon>
<polygon points="597 159 589 155 589 163"></polygon>
</svg>
30 changes: 30 additions & 0 deletions _includes/sql/diagrams/family_def.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<svg width="490" height="112">

<polygon points="9 61 1 57 1 65"></polygon>
<polygon points="17 61 9 57 9 65"></polygon>
<rect x="31" y="47" width="72" height="32" rx="10"></rect>
<rect x="29" y="45" width="72" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="39" y="65">FAMILY</text>
<a xlink:href="sql-grammar.html#name" xlink:title="name">
<rect x="143" y="79" width="54" height="32"></rect>
<rect x="141" y="77" width="54" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="151" y="97">name</text>
</a>
<rect x="237" y="47" width="26" height="32" rx="10"></rect>
<rect x="235" y="45" width="26" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="245" y="65">(</text>
<a xlink:href="sql-grammar.html#family_elem" xlink:title="family_elem">
<rect x="303" y="47" width="94" height="32"></rect>
<rect x="301" y="45" width="94" height="32" class="nonterminal"></rect>
<text class="nonterminal" x="311" y="65">family_elem</text>
</a>
<rect x="303" y="3" width="24" height="32" rx="10"></rect>
<rect x="301" y="1" width="24" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="311" y="21">,</text>
<rect x="437" y="47" width="26" height="32" rx="10"></rect>
<rect x="435" y="45" width="26" height="32" class="terminal" rx="10"></rect>
<text class="terminal" x="445" y="65">)</text>
<path class="line" d="m17 61 h2 m0 0 h10 m72 0 h10 m20 0 h10 m0 0 h64 m-94 0 h20 m74 0 h20 m-114 0 q10 0 10 10 m94 0 q0 -10 10 -10 m-104 10 v12 m94 0 v-12 m-94 12 q0 10 10 10 m74 0 q10 0 10 -10 m-84 10 h10 m54 0 h10 m20 -32 h10 m26 0 h10 m20 0 h10 m94 0 h10 m-134 0 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m114 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-114 0 h10 m24 0 h10 m0 0 h70 m20 44 h10 m26 0 h10 m3 0 h-3"></path>
<polygon points="481 61 489 57 489 65"></polygon>
<polygon points="481 61 473 57 473 65"></polygon>
</svg>
Loading