boundary ETL graph comments - only sql tables and views

This commit is contained in:
ImreSamu
2016-11-09 22:06:24 +01:00
parent 29d33dff3c
commit 598c931e17
3 changed files with 73 additions and 0 deletions

21
gen_etl_graph_boundary.sh Executable file
View File

@@ -0,0 +1,21 @@
DOT=boundary.dot
echo "digraph G
{
rankdir=LR;
" > $DOT
cat ./layers/boundary/mapping.yaml | grep "# etldoc:" | sed 's/# etldoc://g' >>$DOT
cat ./layers/boundary/boundary.sql | grep "\-\- etldoc:" | sed 's/-- etldoc://g' >>$DOT
echo "
}
" >> $DOT
cat $DOT
dot -Tpng $DOT > layer_boundary_etl.png