MCPcopy
hub / github.com/ent/ent / TimeOr

Function TimeOr

entql/types.go:272–282  ·  view source on GitHub ↗

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

(x, y TimeP, z ...TimeP)

Source from the content-addressed store, hash-verified

270
271// TimeOr returns a composed predicate that represents the logical OR predicate.
272func TimeOr(x, y TimeP, z ...TimeP) TimeP {
273 expr := &timeP{}
274 expr.done = func(name string) {
275 zs := make([]P, len(z))
276 for i := range z {
277 zs[i] = z[i].Field(name)
278 }
279 expr.P = Or(x.Field(name), y.Field(name), zs...)
280 }
281 return expr
282}
283
284// TimeAnd returns a composed predicate that represents the logical AND predicate.
285func TimeAnd(x, y TimeP, z ...TimeP) TimeP {

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…