AppendFromExpr appends an expression (Queries) to the `FROM` clause.
(x Querier)
| 1903 | |
| 1904 | // AppendFromExpr appends an expression (Queries) to the `FROM` clause. |
| 1905 | func (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. |
| 1914 | func (s *Selector) Distinct() *Selector { |