MCPcopy
hub / github.com/ent/ent / IntersectAll

Method IntersectAll

dialect/sql/builder.go:2212–2223  ·  view source on GitHub ↗

IntersectAll appends the INTERSECT ALL clause to the query.

(t TableView)

Source from the content-addressed store, hash-verified

2210
2211// IntersectAll appends the INTERSECT ALL clause to the query.
2212func (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.
2226func (s *Selector) Prefix(queries ...Querier) *Selector {

Callers 1

TestSelector_IntersectFunction · 0.80

Calls 3

sqliteMethod · 0.80
NewMethod · 0.80
AddErrorMethod · 0.45

Tested by 1

TestSelector_IntersectFunction · 0.64