MCPcopy
hub / github.com/ent/ent / AppendFromExpr

Method AppendFromExpr

dialect/sql/builder.go:1905–1911  ·  view source on GitHub ↗

AppendFromExpr appends an expression (Queries) to the `FROM` clause.

(x Querier)

Source from the content-addressed store, hash-verified

1903
1904// AppendFromExpr appends an expression (Queries) to the `FROM` clause.
1905func (s *Selector) AppendFromExpr(x Querier) *Selector {
1906 s.from = append(s.from, &queryView{Querier: x})
1907 if st, ok := x.(state); ok {
1908 st.SetDialect(s.dialect)
1909 }
1910 return s
1911}
1912
1913// Distinct adds the DISTINCT keyword to the `SELECT` statement.
1914func (s *Selector) Distinct() *Selector {

Callers 2

FromExprMethod · 0.95
TestMultipleFromFunction · 0.80

Calls 1

SetDialectMethod · 0.65

Tested by 1

TestMultipleFromFunction · 0.64