Regarding gorm and the fact that it migrates the SQL schema at the start of application, I had the same experience in Java with Spring Data, so it's not so uncommon, although I understand it can be scary.
I didn't know about structs embedding. It seems interesting. Thanks for that.
Yeah I found it a bit scary, exactly. I'm also starting to believe that ORMs in Go can be avoided altogether in favor of structs, the standard library and the proper database adapter. Maybe a SQL generator for complex cases. The connection pool is already managed by the standard library anyway...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Regarding gorm and the fact that it migrates the SQL schema at the start of application, I had the same experience in Java with Spring Data, so it's not so uncommon, although I understand it can be scary.
I didn't know about structs embedding. It seems interesting. Thanks for that.
Yeah I found it a bit scary, exactly. I'm also starting to believe that ORMs in Go can be avoided altogether in favor of structs, the standard library and the proper database adapter. Maybe a SQL generator for complex cases. The connection pool is already managed by the standard library anyway...