C returns a formatted string for the table column.
(column string)
| 1607 | |
| 1608 | // C returns a formatted string for the table column. |
| 1609 | func (s *SelectTable) C(column string) string { |
| 1610 | name := s.name |
| 1611 | if s.as != "" { |
| 1612 | name = s.as |
| 1613 | } |
| 1614 | b := &Builder{dialect: s.dialect} |
| 1615 | if s.as == "" { |
| 1616 | b.writeSchema(s.schema) |
| 1617 | } |
| 1618 | b.Ident(name).WriteByte('.').Ident(column) |
| 1619 | return b.String() |
| 1620 | } |
| 1621 | |
| 1622 | // Columns returns a list of formatted strings for the table columns. |
| 1623 | func (s *SelectTable) Columns(columns ...string) []string { |
no test coverage detected