MCPcopy Index your code
hub / github.com/ent/ent / C

Method C

dialect/sql/builder.go:1609–1620  ·  view source on GitHub ↗

C returns a formatted string for the table column.

(column string)

Source from the content-addressed store, hash-verified

1607
1608// C returns a formatted string for the table column.
1609func (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.
1623func (s *SelectTable) Columns(columns ...string) []string {

Callers 1

ColumnsMethod · 0.95

Calls 4

writeSchemaMethod · 0.95
IdentMethod · 0.95
StringMethod · 0.95
WriteByteMethod · 0.80

Tested by

no test coverage detected