If I want a nice ORM and built in migrations, what framework should I be using 10 years later?
If I want a nice ORM and built in migrations, what framework should I be using 10 years later?
As for migrations, I've had success with https://github.com/pressly/goose. It's lightweight and is also just SQL.
Options in Go for effective ORM require source level processing.
Golang has had an issue with fractured ecosystems from the start. Part of this had to do with lack of a package manager. Part of it had to do with companies and developers wanting to move fast and not get bogged down trying to get changes through other peoples process and into their repo. Or perhaps development stalled out as the ORM met the requirements of the developers/project, or for other reasons.
If you evaluate carefully each of the available ORMs it becomes apparent that a lot of them have different short comings and trade-offs, and were created around some theme or feature set missing from the others.
It ensures consistency can always be reached (the most important feature for a migration tool IMO, yet most tools do not guarantee this) and uses standard SQL syntax in migration files.