If you're writing DB-driven apps in Golang -- and you should avoid to the maximum extent possible -- take a look at https://github.com/jinzhu/gorm .
-
-
@patio11 I think I speak for many people when I say: Gist please? :) -
@kennwhite instance := // initialize it; err := db.Find(&instance).Related(&other_objects, "SomeForeignKey").Error; <-- Spot the bug. - 3 more replies
New conversation -
-
-
@patio11 dang, if this is what you write recommendations for, I'd hate to see what you pan.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11 gorm is ok but jmoiron's sqlx is in many ways a better method since you have direct control of the SQL. https://github.com/jmoiron/sqlxThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.