MCPcopy
hub / github.com/ent/ent / SetDistinct

Method SetDistinct

dialect/sql/builder.go:1920–1923  ·  view source on GitHub ↗

SetDistinct sets explicitly if the returned rows are distinct or indistinct.

(v bool)

Source from the content-addressed store, hash-verified

1918
1919// SetDistinct sets explicitly if the returned rows are distinct or indistinct.
1920func (s *Selector) SetDistinct(v bool) *Selector {
1921 s.distinct = v
1922 return s
1923}
1924
1925// Limit adds the `LIMIT` clause to the `SELECT` statement.
1926func (s *Selector) Limit(limit int) *Selector {

Callers 15

limitRowsFunction · 0.80
loadFriendsMethod · 0.80
loadCardMethod · 0.80
loadSpecMethod · 0.80
loadUsersMethod · 0.80
loadGroupsMethod · 0.80
loadFriendsMethod · 0.80
loadFollowersMethod · 0.80
loadFollowingMethod · 0.80
loadFollowersMethod · 0.80
loadFollowingMethod · 0.80
loadTasksMethod · 0.80

Calls

no outgoing calls

Tested by 1

limitRowsFunction · 0.64