OrderByClause adds ORDER BY clause to the query.
(pred interface{}, args ...interface{})
| 360 | |
| 361 | // OrderByClause adds ORDER BY clause to the query. |
| 362 | func (b SelectBuilder) OrderByClause(pred interface{}, args ...interface{}) SelectBuilder { |
| 363 | return builder.Append(b, "OrderByParts", newPart(pred, args...)).(SelectBuilder) |
| 364 | } |
| 365 | |
| 366 | // OrderBy adds ORDER BY expressions to the query. |
| 367 | func (b SelectBuilder) OrderBy(orderBys ...string) SelectBuilder { |