hood
hood copied to clipboard
How use join?
If there is example?. I didn't understand this =(
// Join performs a JOIN on tables, for example
// Join(hood.InnerJoin, &User{}, "user.id", "order.id")
func (hood *Hood) Join(op Join, table interface{}, a Path, b Path) *Hood {
hood.joins = append(hood.joins, &join{
join: op,
table: tableName(table),
a: a,
b: b,
})
return hood
}