MCPcopy
hub / github.com/ent/ent / SelectDistinct

Method SelectDistinct

dialect/sql/builder.go:1761–1763  ·  view source on GitHub ↗

SelectDistinct selects distinct columns.

(columns ...string)

Source from the content-addressed store, hash-verified

1759
1760// SelectDistinct selects distinct columns.
1761func (s *Selector) SelectDistinct(columns ...string) *Selector {
1762 return s.Select(columns...).Distinct()
1763}
1764
1765// AppendSelect appends additional columns to the SELECT statement.
1766func (s *Selector) AppendSelect(columns ...string) *Selector {

Callers 1

AnnotationsMethod · 0.80

Calls 2

SelectMethod · 0.95
DistinctMethod · 0.80

Tested by

no test coverage detected