How to Visualize GORM Models with Atlas
We recently shipped a new feature in Atlas that enables developers to quickly create ERD (Entity Relationship Diagram) visualizations of their database schemas. Today, I want to show how this feature can be used in tandem with one of Atlas's core capabilities - "Schema Loaders" - to produce visualizations of GORM models.
But first, let's introduce the different characters in this story:
- Atlas - an open-source tool for managing database schemas.
- GORM - one of the most popular ORMs for Go.
- ERD - a diagram that shows the relationships between entities in a database. (we'll see an example in a minute)
- Schema Loaders - a feature in Atlas that allows users to load their database schemas from different sources.
In this blog post, we will create a toy GORM application, and show how you can use Atlas to visualize the database schema that GORM generates for you.