This Python program generates Database Markup Language (DBML) Entity Relationship Diagram's (ERD) from the relationships node in your dbt YML files. The script parses the YML files, extracts relationships and columns, and outputs a DBML schema.
Functionality is mostly stable. Error handling is sub-optimal.
Notable issues:
- only process `.yml` files (no `.yaml` lol)
- no strong debugging/verbose mode
- does not handle cardinality in accordance with the relationship.type
- does not handle data type (all types modeled as `int` in dbml)
bash
pip install erdgen
python -m erdgen --directory <directory> --include_non_join_keys <True/False>