MCPcopy
hub / github.com/ent/ent / IntOr

Function IntOr

entql/types.go:968–978  ·  view source on GitHub ↗

IntOr returns a composed predicate that represents the logical OR predicate.

(x, y IntP, z ...IntP)

Source from the content-addressed store, hash-verified

966
967// IntOr returns a composed predicate that represents the logical OR predicate.
968func IntOr(x, y IntP, z ...IntP) IntP {
969 expr := &intP{}
970 expr.done = func(name string) {
971 zs := make([]P, len(z))
972 for i := range z {
973 zs[i] = z[i].Field(name)
974 }
975 expr.P = Or(x.Field(name), y.Field(name), zs...)
976 }
977 return expr
978}
979
980// IntAnd returns a composed predicate that represents the logical AND predicate.
981func IntAnd(x, y IntP, z ...IntP) IntP {

Callers

nothing calls this directly

Calls 2

OrFunction · 0.70
FieldMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…