File tree 4 files changed +6
-8
lines changed
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
PREFIX ?= $(HOME ) /.local/bin
2
2
3
3
all :
4
- install : sqldep utils/dep_to_dot.sh utils/dep_to_schema_dot.sh
5
- cp sqldep $(PREFIX )
6
- cp utils/dep_to_dot.sh $(PREFIX ) /sqldep_to_dot
7
- cp utils/dep_to_schema_dot.sh $(PREFIX ) /sqldep_to_schema_dot
8
- sed -i ' s#\./dep_to_dot\.sh#sqldep_to_dot#' $(PREFIX ) /sqldep_to_schema_dot
4
+ install : sqldep utils/sqldep_to_dot utils/sqldep_to_schema_dot
5
+ cp $^ $(PREFIX )
6
+ sed -i ' s#\./##' $(PREFIX ) /sqldep_to_schema_dot
Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ $ ./sqldep school <demo/school.sql >>print.dep
28
28
Convert dependencies to a dot script,
29
29
then render it using [ GraphViz] ( https://graphviz.org/ ) :
30
30
```
31
- $ utils/dep_to_dot.sh <print.dep |dot -Tsvg >demo/print.svg
31
+ $ utils/sqldep_to_dot <print.dep |dot -Tsvg >demo/print.svg
32
32
```
33
33
![ Object Dependencies] ( demo/print.svg )
34
34
35
35
Convert dependencies to a dot script describing inter-schema dependencies,
36
36
then render it using [ GraphViz] ( https://graphviz.org/ ) :
37
37
```
38
- $ (cd utils; ./dep_to_schema_dot.sh ) <print.dep |dot -Tsvg >demo/print_s.svg
38
+ $ (cd utils; ./sqldep_to_schema_dot ) <print.dep |dot -Tsvg >demo/print_s.svg
39
39
```
40
40
![ Schema Dependencies] ( demo/print_s.svg )
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
sed -Ee ' s/^VIEW/TABLE/' -e " s/([A-Za-z0-9_]+)\.[A-Za-z0-9_]+/\1/g" |
3
- ./dep_to_dot.sh |
3
+ ./sqldep_to_dot |
4
4
sed ' 1s/^/strict /'
You can’t perform that action at this time.
0 commit comments