Skip to content

How use join? #88

@weldpua2008

Description

@weldpua2008

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions