------------------------------------------------------------------------------ Column adds columns to the SELECT clause.
(columns ...string)
| 133 | |
| 134 | // Column adds columns to the SELECT clause. |
| 135 | func (q *SelectQuery) Column(columns ...string) *SelectQuery { |
| 136 | for _, column := range columns { |
| 137 | q.addColumn(schema.UnsafeIdent(column)) |
| 138 | } |
| 139 | return q |
| 140 | } |
| 141 | |
| 142 | // ColumnExpr adds a column expression to the SELECT clause with arguments. |
| 143 | func (q *SelectQuery) ColumnExpr(query string, args ...any) *SelectQuery { |