MCPcopy
hub / github.com/ent/ent / Table

Method Table

dialect/sql/builder.go:2014–2019  ·  view source on GitHub ↗

Table returns the selected table.

()

Source from the content-addressed store, hash-verified

2012
2013// Table returns the selected table.
2014func (s *Selector) Table() *SelectTable {
2015 if len(s.from) == 0 {
2016 return nil
2017 }
2018 return selectTable(s.from[0])
2019}
2020
2021// selectTable returns a *SelectTable from the given TableView.
2022func selectTable(t TableView) *SelectTable {

Callers 15

CMethod · 0.95
TestBuilderFunction · 0.45
TestSelector_ColumnsFunction · 0.45
TableMethod · 0.45
SetExcludedMethod · 0.45
FromSelectMethod · 0.45
FromSelectMethod · 0.45
planReplayMethod · 0.45
loadTypesMethod · 0.45

Calls 1

selectTableFunction · 0.85

Tested by 7

TestBuilderFunction · 0.36
TestSelector_ColumnsFunction · 0.36
TestOrderByNeighborTermsFunction · 0.36