IntersectAll appends the INTERSECT ALL clause to the query.
(t TableView)
| 2210 | |
| 2211 | // IntersectAll appends the INTERSECT ALL clause to the query. |
| 2212 | func (s *Selector) IntersectAll(t TableView) *Selector { |
| 2213 | if s.sqlite() { |
| 2214 | s.AddError(errors.New("INTERSECT ALL is not supported by SQLite")) |
| 2215 | } else { |
| 2216 | s.setOps = append(s.setOps, setOp{ |
| 2217 | Type: setOpTypeIntersect, |
| 2218 | All: true, |
| 2219 | TableView: t, |
| 2220 | }) |
| 2221 | } |
| 2222 | return s |
| 2223 | } |
| 2224 | |
| 2225 | // Prefix prefixes the query with list of queries. |
| 2226 | func (s *Selector) Prefix(queries ...Querier) *Selector { |