Extracts database schemas from PostgreSQL migration files by running a temporary database.
Mig2Schema is a command-line tool designed to understand the current state of a PostgreSQL database schema by analyzing its migration history. It spins up a temporary PostgreSQL instance using Testcontainers, applies all specified migration files, and then extracts the resulting schema. This is particularly useful for projects with extensive migration folders, allowing developers to quickly grasp the database structure without manual inspection or running complex setups.