Skip to content

Visualize database views and materialized views #6

Description

@JoseVelazcoH

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions