MCPcopy Index your code
hub / github.com/upper/db / Distinct

Method Distinct

internal/sqlbuilder/select.go:188–193  ·  view source on GitHub ↗
(exps ...interface{})

Source from the content-addressed store, hash-verified

186}
187
188func (sel *selector) Distinct(exps ...interface{}) db.Selector {
189 return sel.frame(func(sq *selectorQuery) error {
190 sq.distinct = true
191 return sq.pushColumns(exps...)
192 })
193}
194
195func (sel *selector) Where(terms ...interface{}) db.Selector {
196 return sel.frame(func(sq *selectorQuery) error {

Callers

nothing calls this directly

Calls 2

frameMethod · 0.95
pushColumnsMethod · 0.80

Tested by

no test coverage detected