Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How use join? #88

Open
weldpua2008 opened this issue Sep 1, 2014 · 0 comments
Open

How use join? #88

weldpua2008 opened this issue Sep 1, 2014 · 0 comments

Comments

@weldpua2008
Copy link

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant