Hacker News new | ask | show | jobs
by mixedCase 3528 days ago
I've been eyeing Pop[1], which is a data-mapper/ORMish library wrapping around sqlx[2]; and it happens to contain a new DSL called Fizz[3] that allows for database-independent migrations.

To be honest, I have always tried to avoid Go ORMs after a bad experience with gorm, but the whole package is looking very interesting for reducing the boilerplate involved in Go CRUD applications without having to buy into a complexity risk. It's worth a look.

[1] https://github.com/markbates/pop

[2] https://github.com/jmoiron/sqlx

[3] https://github.com/markbates/pop/tree/master/fizz

2 comments

I've come to drop ORMs altogether in Go, but I will have a look at this one, just out of curiosity.
What was the bad experience you had with gorm, out of interest?
I don't remember the details, it was around a year and a half ago. But I do remember I had some trouble trying to optimize a few queries with gorm complaining about something and the other guy I was working with didn't understand it much and since we were early on development we scrapped it and went with sqlx.