SelectExpr changes the columns selection of the SELECT statement with custom list of expressions.
(exprs ...Querier)
| 1779 | // SelectExpr changes the columns selection of the SELECT statement |
| 1780 | // with custom list of expressions. |
| 1781 | func (s *Selector) SelectExpr(exprs ...Querier) *Selector { |
| 1782 | s.selection = make([]selection, len(exprs)) |
| 1783 | for i := range exprs { |
| 1784 | s.selection[i] = selection{x: exprs[i]} |
| 1785 | } |
| 1786 | return s |
| 1787 | } |
| 1788 | |
| 1789 | // AppendSelectExpr appends additional expressions to the SELECT statement. |
| 1790 | func (s *Selector) AppendSelectExpr(exprs ...Querier) *Selector { |
no outgoing calls