4 ms·
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 datab
by mixedCase 10y 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 https://github.com/markbates/pop
[2] https://github.com/jmoiron/sqlx https://github.com/jmoiron/sqlx
[3] https://github.com/markbates/pop/tree/master/fizz https://github.com/markbates/pop/tree/master/fizz
- kornish 10y agoWhat was the bad experience you had with gorm, out of interest?
- mixedCase 10y agoI 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.
- elwinar 10y agoI've come to drop ORMs altogether in Go, but I will have a look at this one, just out of curiosity.