Select changes the columns selection of the SELECT statement. Empty selection means all columns *.
(columns ...string)
| 1750 | // Select changes the columns selection of the SELECT statement. |
| 1751 | // Empty selection means all columns *. |
| 1752 | func (s *Selector) Select(columns ...string) *Selector { |
| 1753 | s.selection = make([]selection, len(columns)) |
| 1754 | for i := range columns { |
| 1755 | s.selection[i] = selection{c: columns[i]} |
| 1756 | } |
| 1757 | return s |
| 1758 | } |
| 1759 | |
| 1760 | // SelectDistinct selects distinct columns. |
| 1761 | func (s *Selector) SelectDistinct(columns ...string) *Selector { |
no outgoing calls