datnguye / dbterd

Generate the ERD as a code from dbt artifacts
https://dbterd.datnguyen.de/
MIT License
198 stars 28 forks source link

Add `omit_columns` option to mermaid #77

Closed syou6162 closed 7 months ago

syou6162 commented 7 months ago

resolves https://github.com/datnguye/dbterd/issues/78

Description

I added --omit_columns option to omit columns from diagrams when the output format is mermaid.

I thought about omitting columns for --target other than mermaid, but since dbml, for example, requires at least one column, I decided to support only --target = mermaid.

Checklist

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2ae1867) 85.60% compared to head (b172040) 85.68%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #77 +/- ## ========================================== + Coverage 85.60% 85.68% +0.07% ========================================== Files 31 31 Lines 910 915 +5 ========================================== + Hits 779 784 +5 Misses 131 131 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.