hood icon indicating copy to clipboard operation
hood copied to clipboard

How use join?

Open weldpua2008 opened this issue 10 years ago • 0 comments

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
}

weldpua2008 avatar Sep 01 '14 08:09 weldpua2008