OrderExprFunc appends the `ORDER BY` expression that evaluates the given function.
(f func(*Builder))
| 2468 | // OrderExprFunc appends the `ORDER BY` expression that evaluates |
| 2469 | // the given function. |
| 2470 | func (s *Selector) OrderExprFunc(f func(*Builder)) *Selector { |
| 2471 | return s.OrderExpr( |
| 2472 | Dialect(s.Dialect()).Expr(f), |
| 2473 | ) |
| 2474 | } |
| 2475 | |
| 2476 | // ClearOrder clears the ORDER BY clause to be empty. |
| 2477 | func (s *Selector) ClearOrder() *Selector { |
no test coverage detected