add layer_building etldoc comments

This commit is contained in:
ImreSamu
2016-11-09 23:39:44 +01:00
parent 598c931e17
commit 7a0ec0e40d
3 changed files with 35 additions and 0 deletions

21
gen_etl_graph_building.sh Executable file
View File

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