Skip to content

Show UNIQUE constraints and indexes on the diagram - #52

Open
zamax14 wants to merge 2 commits into
developfrom
issue-9-unique-index-badges
Open

zamax14 wants to merge 2 commits into
developfrom
issue-9-unique-index-badges

Conversation

@zamax14

@zamax14 zamax14 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Marks columns that participate in unique constraints or unique indexes with a U badge.
  • Adds opt-in non-unique index visibility through show_indexes=True and --show-indexes.
  • Carries the badges through auto-width sizing plus HTML and SVG rendering.

Tests

  • .venv/bin/python -m pytest tests/test_introspect.py tests/test_html_renderer.py tests/test_renderer.py
  • .venv/bin/python -m pytest

Documentation

  • TODO: documentation is intentionally deferred to a follow-up issue so these functional issue PRs do not conflict with each other while being reviewed.

@zamax14
zamax14 marked this pull request as ready for review June 29, 2026 08:10
@zamax14
zamax14 requested a review from JoseVelazcoH June 29, 2026 08:10
@zamax14 zamax14 self-assigned this Jun 29, 2026
@zamax14 zamax14 linked an issue Jun 29, 2026 that may be closed by this pull request
@zamax14
zamax14 marked this pull request as draft June 29, 2026 08:18
@zamax14
zamax14 marked this pull request as ready for review June 29, 2026 08:21
…ex-badges

# Conflicts:
#	tests/conftest.py
#	tests/test_introspect.py

@JoseVelazcoH JoseVelazcoH left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicts must be resolved

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show UNIQUE constraints and indexes on the diagram

2 participants