mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
dialect/sql/builder: added FullJoin (#2885)
* dialect/sql/builder: added FullJoin * fix comment casing Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
This commit is contained in:
@@ -2331,6 +2331,11 @@ func (s *Selector) RightJoin(t TableView) *Selector {
|
||||
return s.join("RIGHT JOIN", t)
|
||||
}
|
||||
|
||||
// FullJoin appends a `FULL JOIN` clause to the statement.
|
||||
func (s *Selector) FullJoin(t TableView) *Selector {
|
||||
return s.join("FULL JOIN", t)
|
||||
}
|
||||
|
||||
// join adds a join table to the selector with the given kind.
|
||||
func (s *Selector) join(kind string, t TableView) *Selector {
|
||||
s.joins = append(s.joins, join{
|
||||
|
||||
Reference in New Issue
Block a user