DEV Community

Discussion on: Seven days of Go

Collapse
 
biros profile image
Boris Jamot ✊ /

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.

Collapse
 
rhymes profile image
rhymes

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...