8000 How use join? · Issue #88 · eaigner/hood · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
How use join? #88
Open
Open
@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

      0