1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 03:00:54 +00:00

Add GroupBy to QuerySeter

This commit is contained in:
Thanh Tran 2016-02-02 11:28:43 +07:00
parent 089242eda0
commit bb50383aa9

View File

@ -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: