As suffixed the given column with an alias (`a` AS `b`).
(ident string, as string)
| 1538 | |
| 1539 | // As suffixed the given column with an alias (`a` AS `b`). |
| 1540 | func As(ident string, as string) string { |
| 1541 | b := &Builder{} |
| 1542 | b.fromIdent(ident) |
| 1543 | b.Ident(ident).Pad().WriteString("AS") |
| 1544 | b.Pad().Ident(as) |
| 1545 | return b.String() |
| 1546 | } |
| 1547 | |
| 1548 | // Distinct prefixed the given columns with the `DISTINCT` keyword (DISTINCT `id`). |
| 1549 | func Distinct(idents ...string) string { |