datnguye / dbterd

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

Allows drawing recursive relationships #89

Closed syou6162 closed 6 months ago

syou6162 commented 6 months ago

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

Description

This modification allows a diagram to be drawn even if it has the following recursive relationship.

erDiagram
  "MY_PROJECT.CATEGORY" {
  }
  "MY_PROJECT.CATEGORY" }|--|| "MY_PROJECT.CATEGORY": categoryid--parentCategoryId

Checklist

codecov[bot] commented 6 months ago

Codecov Report

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

Comparison is base (f704cf8) 100.00% compared to head (681134f) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #89 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 959 961 +2 ========================================= + Hits 959 961 +2 ```

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

datnguye commented 6 months ago

LGTM thanks @syou6162