MCPcopy
hub / github.com/ent/ent / AppendFrom

Method AppendFrom

dialect/sql/builder.go:1890–1896  ·  view source on GitHub ↗

AppendFrom appends a new TableView to the `FROM` clause.

(t TableView)

Source from the content-addressed store, hash-verified

1888
1889// AppendFrom appends a new TableView to the `FROM` clause.
1890func (s *Selector) AppendFrom(t TableView) *Selector {
1891 s.from = append(s.from, t)
1892 if st, ok := t.(state); ok {
1893 st.SetDialect(s.dialect)
1894 }
1895 return s
1896}
1897
1898// FromExpr sets the expression of `FROM` clause.
1899func (s *Selector) FromExpr(x Querier) *Selector {

Callers 2

FromMethod · 0.95
TestMultipleFromFunction · 0.80

Calls 1

SetDialectMethod · 0.65

Tested by 1

TestMultipleFromFunction · 0.64