MCPcopy
hub / github.com/ent/ent / Distinct

Method Distinct

dialect/sql/builder.go:1914–1917  ·  view source on GitHub ↗

Distinct adds the DISTINCT keyword to the `SELECT` statement.

()

Source from the content-addressed store, hash-verified

1912
1913// Distinct adds the DISTINCT keyword to the `SELECT` statement.
1914func (s *Selector) Distinct() *Selector {
1915 s.distinct = true
1916 return s
1917}
1918
1919// SetDistinct sets explicitly if the returned rows are distinct or indistinct.
1920func (s *Selector) SetDistinct(v bool) *Selector {

Callers 15

sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80
sqlQueryMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestBuilderFunction · 0.64