BOCOVO / db-schema-visualizer

A Visual Studio Code extension to visualize database schemas as Entity Relationship Diagrams (ERD) from DBML or Prisma files directly within the editor.
MIT License
56 stars 7 forks source link

Support for TableGroups? #66

Open acerrato opened 1 month ago

acerrato commented 1 month ago

First off - this is a fantastic extension. Your work is excellent!

Is your feature request related to a problem? Please describe. DBML TableGroups is a useful feature for keeping large diagrams organized. I think support for that feature along with custom colors would bring this extension in very close competition with the dbdiagram.io product.

Describe the solution you'd like Support for the "TableGroups" syntax like the example below (illustrated in the link above). Support for the "[color: ####]" syntax isn't necessary but would be a nice enhancement as well - at least for these groups.

TableGroup "User Wishlist System" [color: #1E69FD] {
  wishlists
  wishlist_items

  Note: '''
  This group manages the user wishlist functionality.
  - wishlists: Stores user-specific wishlists.
  - wishlist_items: Contains items added to each wishlist.
  '''
}
SpudimusPrime commented 23 hours ago

Bumping, grouping would be a huge benefit. I'm using header colors right now as a work around but things are starting to blend together. The ability to group (and collapse those groups) would be a massive improvement!