MCPcopy Create free account
hub / github.com/go-pg/pg / DistinctOn

Method DistinctOn

orm/query.go:316–319  ·  view source on GitHub ↗
(expr string, params ...interface{})

Source from the content-addressed store, hash-verified

314}
315
316func (q *Query) DistinctOn(expr string, params ...interface{}) *Query {
317 q.distinctOn = append(q.distinctOn, SafeQuery(expr, params...))
318 return q
319}
320
321// Column adds a column to the Query quoting it according to PostgreSQL rules.
322// Does not expand params like ?TableAlias etc.

Callers 2

select_nil_test.goFile · 0.80
select_test.goFile · 0.80

Calls 1

SafeQueryFunction · 0.70

Tested by

no test coverage detected