MCPcopy
hub / github.com/ent/ent / TableName

Method TableName

dialect/sql/builder.go:2042–2051  ·  view source on GitHub ↗

TableName returns the name of the selected table or alias of selector.

()

Source from the content-addressed store, hash-verified

2040
2041// TableName returns the name of the selected table or alias of selector.
2042func (s *Selector) TableName() string {
2043 switch view := s.from[0].(type) {
2044 case *SelectTable:
2045 return view.name
2046 case *Selector:
2047 return view.as
2048 default:
2049 panic(fmt.Sprintf("unhandled TableView type %T", s.from))
2050 }
2051}
2052
2053// HasJoins reports if the selector has any JOINs.
2054func (s *Selector) HasJoins() bool {

Callers 15

limitRowsFunction · 0.80
AscFunction · 0.80
DescFunction · 0.80
MaxFunction · 0.80
MeanFunction · 0.80
MinFunction · 0.80
SumFunction · 0.80
AscFunction · 0.80
DescFunction · 0.80
MaxFunction · 0.80
MeanFunction · 0.80
MinFunction · 0.80

Calls

no outgoing calls

Tested by 1

limitRowsFunction · 0.64