Column adds a result column to the query. Unlike Columns, Column accepts args which will be bound to placeholders in the columns string, for example: Column("IF(col IN ("+squirrel.Placeholders(3)+"), 1, 0) as col", 1, 2, 3)
(column interface{}, args ...interface{})
| 274 | // the columns string, for example: |
| 275 | // Column("IF(col IN ("+squirrel.Placeholders(3)+"), 1, 0) as col", 1, 2, 3) |
| 276 | func (b SelectBuilder) Column(column interface{}, args ...interface{}) SelectBuilder { |
| 277 | return builder.Append(b, "Columns", newPart(column, args...)).(SelectBuilder) |
| 278 | } |
| 279 | |
| 280 | // From sets the FROM clause of the query. |
| 281 | func (b SelectBuilder) From(from string) SelectBuilder { |