The main reason is to avoid magic.  My past experience with ORMs has been 
that they make easy things easier and hard things harder.  Once you start 
leveraging relational bits, they become incredibly unwieldy to actually 
use.  They also tend to generate wildly suboptimal SQL and rely on a lot of 
reflection that is just slow.

On Thursday, July 20, 2017 at 2:56:21 AM UTC-4, mbanzon wrote:
>
> Just out of curiosity - why switch away from gorm??
>
> We've just switched from gorp to gorm - with great success. The main 
> reason I could find for going (pun intended) is to have one less dependency.
>
> --
> Michael Banzon
> https://michaelbanzon.com/
>
> Den 20. jul. 2017 kl. 06.04 skrev Nate Finch <nate....@gmail.com 
> <javascript:>>:
>
> We're thinking of dropping gorm and switching to plain old database/sql... 
> but I don't really want to generate all that boilerplate myself.  xo looks 
> like it does a reasonable job of generating the boilerplate for you, so I 
> was wondering if anyone had any experience using it in production. 
>  Gotchas, etc.
>
> -Nate
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to