forked from stephendotcarter/greenplum-syscat-ref
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph_template.jinja.dot
More file actions
30 lines (23 loc) · 829 Bytes
/
graph_template.jinja.dot
File metadata and controls
30 lines (23 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
digraph GPDB {
label="Greenplum System Catalog: {{relname}}";
labelloc="t";
fontname="Helvetica"
fontsize=32
pad=0.5;
nodesep=0.5;
ranksep=0.5;
rankdir=LR;
node [shape = "plaintext"];
{% for cluster in [['cluster_from','References'],['cluster_selected','Relation'],['cluster_to','Foreign']] %}
subgraph {{ cluster[0] }} {
rankdir=TB
style=invis;
{% for table in clusters[cluster[0]] %}
{{ table.relname }} [label = {{ table.label }} name = "{{ table.relname }}"];
{% endfor %}
}
{% endfor %}
{% for fk in fks %}
{{fk.local_relname}}:{{fk.local_colname}}_{{fk.local_port}} -> {{fk.remote_relname}}:{{fk.remote_colname}}_{{fk.remote_port}} [penwidth = {{fk.penwidth}} color = "{{fk.color}}"];
{% endfor %}
}