How to check database schema size and count objects
How can I check the size of my database schemas and count the number of objects in each schema?
Answer
Atlas provides programmatic capabilities that allow you to customize inspection output using Go templates. This lets you generate custom reports about your database schema, including counting schemas, tables, views, functions, and other database objects.
By configuring a custom format template in your atlas.hcl file, you can use atlas schema inspect to generate detailed statistics
about your database structure, such as the total number of objects per schema and the overall database size.