mohit kumar singh
mohit kumar singh
I want to make answers a weak entity with partial key pointing to test_results. so that I can call `db.Model(&TestResults{}).Relation("Answers")` and let go-pg do the heavy lifting. Ideally I would...
some points: - You don't need to pass the object to both Model and Select. - Use `pg:",use_zero"` tag for integral fields else 0 is considered same as null. -...
As I said its random, I have a multi-tenancy application using go-pg. So I have like 100 databases made from same code. Out of which I guess 10 of them...
@brandensilva While above works, the caller has to do 2 checks - one for entity id all and one for specific entity. Defining a recursive wildcard seems better to me...
Ok I found the `defer os.Exit(0)` line in compile function. Why would anyone call os.Exit() ever in a program ??