MCPcopy
hub / github.com/ent/ent / CollectPredicates

Method CollectPredicates

dialect/sql/builder.go:1939–1942  ·  view source on GitHub ↗

CollectPredicates indicates the appended predicated should be collected and not appended to the `WHERE` clause.

()

Source from the content-addressed store, hash-verified

1937// CollectPredicates indicates the appended predicated should be collected
1938// and not appended to the `WHERE` clause.
1939func (s *Selector) CollectPredicates() *Selector {
1940 s.collected = append(s.collected, []*Predicate{})
1941 return s
1942}
1943
1944// CollectedPredicates returns the collected predicates.
1945func (s *Selector) CollectedPredicates() []*Predicate {

Callers 3

AndPredicatesFunction · 0.80
OrPredicatesFunction · 0.80
NotPredicatesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected