diff --git a/main.go b/main.go index d5490caf9410a34d833a152fff2ed66785effcb2..a77c4dd36bbb35ea26d79dc8c4e3ed4ef9f2ac72 100644 --- a/main.go +++ b/main.go @@ -297,7 +297,8 @@ type Result interface { // Discards the initial filtering conditions and sets new ones. Where(...interface{}) Result - // Groups results using a key. + // Used to group results that have the same value in the same column or + // columns. Group(...interface{}) Result // Removes all items within the result set. diff --git a/postgresql/result.go b/postgresql/result.go index 37f1523aef9e0f3ff20af4ede4314d695796b83e..a382b7fc321999d795fae6b73c072c22fb4e6f2d 100644 --- a/postgresql/result.go +++ b/postgresql/result.go @@ -85,7 +85,8 @@ func (self *result) Skip(n uint) db.Result { return self } -// Used to group results that have the same value in the same column or columns. +// Used to group results that have the same value in the same column or +// columns. func (self *result) Group(fields ...interface{}) db.Result { groupByColumns := make(sqlgen.GroupBy, 0, len(fields))