It's 2019 guys. Please.
271 karma · joined September 3, 2012
@aacanakin https://github.com/aacanakin
It's 2019 guys. Please.
Feedbacks & Contributions are welcome about the builder.
There are also some missing features qb doesn't have and gorm has. For instance, you can define relationships in gorm while in qb, you can only define foreign keys using `qb:"constraints:ref(col, table)"`.
Moreover, I am not entirely sure but I don't think enforcing types is possible in gorm. In qb, consider this struct;
type User struct { id string `qb:"type:uuid; constraints:primary_key"` }
qb understands this as a uuid type although it has string definitions. These are the main reasons why I created qb.
The relationship feature is not clear in my mind. I'd like to have feedback on relationships.