MCPcopy Index your code
hub / github.com/Masterminds/squirrel / Distinct

Method Distinct

select.go:247–249  ·  view source on GitHub ↗

Distinct adds a DISTINCT clause to the query.

()

Source from the content-addressed store, hash-verified

245
246// Distinct adds a DISTINCT clause to the query.
247func (b SelectBuilder) Distinct() SelectBuilder {
248 return b.Options("DISTINCT")
249}
250
251// Options adds select option to the query
252func (b SelectBuilder) Options(options ...string) SelectBuilder {

Callers 2

TestSelectBuilderToSqlFunction · 0.80
TestSelectWithOptionsFunction · 0.80

Calls 1

OptionsMethod · 0.95

Tested by 2

TestSelectBuilderToSqlFunction · 0.64
TestSelectWithOptionsFunction · 0.64