seedling introspect
Reads a live database schema and writes it as a structured YAML or JSON file.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
--db | Database connection string | Required |
--output | Output file path | stdout |
--format | Output format (yaml or json) | yaml |
Examples
Postgres
MySQL
JSON Output
Output Structure
Auto-detection
The introspector auto-detects the database engine from the DSN:postgres://→ Postgres (pgx driver)mysql://→ MySQL/MariaDB (go-sql-driver)