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

Method joinSelect

dialect/sql/builder.go:2658–2674  ·  view source on GitHub ↗
(b *Builder)

Source from the content-addressed store, hash-verified

2656}
2657
2658func (s *Selector) joinSelect(b *Builder) {
2659 for i, sc := range s.selection {
2660 if i > 0 {
2661 b.Comma()
2662 }
2663 switch {
2664 case sc.c != "":
2665 b.Ident(sc.c)
2666 case sc.x != nil:
2667 b.Join(sc.x)
2668 }
2669 if sc.as != "" {
2670 b.WriteString(" AS ")
2671 b.Ident(sc.as)
2672 }
2673 }
2674}
2675
2676// implement the table view interface.
2677func (*Selector) view() {}

Callers 1

QueryMethod · 0.95

Calls 4

CommaMethod · 0.80
IdentMethod · 0.80
WriteStringMethod · 0.80
JoinMethod · 0.45

Tested by

no test coverage detected