Skip to content

Instantly share code, notes, and snippets.

@gbrault
Last active December 14, 2016 17:12
Show Gist options
  • Save gbrault/282e00ef9ea33a7a96261f09fa02534e to your computer and use it in GitHub Desktop.
Save gbrault/282e00ef9ea33a7a96261f09fa02534e to your computer and use it in GitHub Desktop.
CREATE TABLE graphviz file
strict digraph CT {
rankdir=LR
splines=ortho
node [style=rounded]
node [shape=box]
begin [shape=doublecircle]
point0 [shape=point]
point1 [shape=point]
point2 [label="2" shape=circle]
point3 [label="2" shape=circle]
point4 [label="3" shape=circle]
point5 [label="3" shape=circle]
begin->point3 [style="invis"]
point3->point5 [style="invis"]
{rank=same;begin;point3;point5}
point3->table_name
point3->{schema_name [shape=note]}-> {circle1 [label="." shape=circle] }->{table_name[shape=note]}
TABLE ->IF->NOT->EXISTS->point1
TABLE -> point1
point1->point2
{
begin -> CREATE -> { point0 TEMP TEMPORARY } ->TABLE
}
table_name->point4
point5->{paro[label="("]}->{back [shape=point]}->{coldef [label="column-def" shape=box style=""]}->{vir [label="," shape=circle]}->back
coldef->{point6 [shape=point]}->{parc[label=")" shape=circle]}
point6->{vir1[label="," shape=circle]}->{tabconst [label="table-constraint" shape=box style=""]}->point6
{rank=same;coldef;vir}
{rank=same;vir1;point6}
point5->AS->{selstat [label="select-statement" shape=box style=""]}->{point7 [shape=doublecircle label="end"]}
parc->WITHOUT->ROWID->point7
parc->point7
}
@gbrault
Copy link
Author

gbrault commented Dec 14, 2016

alt-tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment