Problem
Views and materialized views are a fundamental part of most production schemas but are completely invisible in the current ERD output. Users who define views via SQLAlchemy (e.g. using Table(..., autoload_with=engine) or libraries like sqlalchemy-views) get no representation.
Proposed
- Detect view-backed mapped classes or
Table objects with a __view__ / info marker
- Render them with a distinct visual style (e.g. dashed border, different header color)
- Show their columns and any FK references they expose
- Add a flag
include_views=True/False to the public API (generate_erd) to let users opt in/out
Problem
Views and materialized views are a fundamental part of most production schemas but are completely invisible in the current ERD output. Users who define views via SQLAlchemy (e.g. using
Table(..., autoload_with=engine)or libraries likesqlalchemy-views) get no representation.Proposed
Tableobjects with a__view__/infomarkerinclude_views=True/Falseto the public API (generate_erd) to let users opt in/out