mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 22:00:55 +00:00
Merge pull request #1651 from thanhtranjs/develop
Add GroupBy to QuerySeter
This commit is contained in:
commit
441f795a1a
@ -148,6 +148,10 @@ type QuerySeter interface {
|
|||||||
// add OFFSET value
|
// add OFFSET value
|
||||||
// same as Limit function's args[0]
|
// same as Limit function's args[0]
|
||||||
Offset(offset interface{}) QuerySeter
|
Offset(offset interface{}) QuerySeter
|
||||||
|
// add GROUP BY expression
|
||||||
|
// for example:
|
||||||
|
// qs.GroupBy("id")
|
||||||
|
GroupBy(exprs ...string) QuerySeter
|
||||||
// add ORDER expression.
|
// add ORDER expression.
|
||||||
// "column" means ASC, "-column" means DESC.
|
// "column" means ASC, "-column" means DESC.
|
||||||
// for example:
|
// for example:
|
||||||
|
Loading…
Reference in New Issue
Block a user