3 ms·
What about 90% of cases being simple CRUD and 10% you just do the usual "raw SQL query"? I've chosen this path of using only sqlx on my current work project (o
by swah 9y ago
What about 90% of cases being simple CRUD and 10% you just do the usual "raw SQL query"?
I've chosen this path of using only sqlx on my current work project (only me) and regret it, because so much typing..
- bm1362 9y agoI also work alone on a Go service and have some complex models. I used Gorm and then for complex selects broke out the raw sql. It works okay, I’m still having to bolt on things like OCC and Versioning to my models. I’m glad I used it though- it gave me a solid foundation to work off and replace the bits that don’t quite work well.
- kemitche 9y agoI use Masterminds' squirrel library to build up queries which cuts down on the amount of hand written SQL I need.