entc/gen: skip selecting group-by fields if they already selected

This commit is contained in:
Ariel Mashraki
2021-04-19 16:17:57 +03:00
committed by Ariel Mashraki
parent 5421d6c628
commit 497fca4c96
82 changed files with 167 additions and 162 deletions

View File

@@ -1759,6 +1759,11 @@ func (s *Selector) Select(columns ...string) *Selector {
return s
}
// SelectedColumns returns the selected columns of the Selector.
func (s *Selector) SelectedColumns() []string {
return s.columns
}
// From sets the source of `FROM` clause.
func (s *Selector) From(t TableView) *Selector {
s.from = t