How go-gorm/playground works
GORM Playground is a developer test harness for reproducing and reporting GORM issues. The documented workflow is to configure or modify tests, run them against GORM and selected database drivers, then share a failing Playground change when reporting an issue. The shown runtime initializes a database connection, resets and migrates its model schema, and exposes relationship-rich sample models. The test implementation was not sampled, so its connections to setup are not asserted beyond the README’s description.
Main entry points: db.go Database setup · main_test.go GORM tests · models.go Relationship models
Components 7
Developer workflow
- GORM tests
main_test.go
Test runtime
- Database setup
db.go - GORM ORM
- Database drivers
- Test database
Sample domain
- Relationship models
models/models.go
Other components
- Developer
Connections 6
- Developer → GORM tests: modifies and runs
README.md - GORM tests → Database setup: uses setup
- Database setup → GORM ORM: opens and migrates
db.go - Database setup → Database drivers: selects driver
db.go - Database setup → Relationship models: migrates
db.go - Database drivers → Test database: connects