MCPcopy
hub / github.com/ent/ent / BytesOr

Function BytesOr

entql/types.go:156–166  ·  view source on GitHub ↗

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

(x, y BytesP, z ...BytesP)

Source from the content-addressed store, hash-verified

154
155// BytesOr returns a composed predicate that represents the logical OR predicate.
156func BytesOr(x, y BytesP, z ...BytesP) BytesP {
157 expr := &bytesP{}
158 expr.done = func(name string) {
159 zs := make([]P, len(z))
160 for i := range z {
161 zs[i] = z[i].Field(name)
162 }
163 expr.P = Or(x.Field(name), y.Field(name), zs...)
164 }
165 return expr
166}
167
168// BytesAnd returns a composed predicate that represents the logical AND predicate.
169func BytesAnd(x, y BytesP, z ...BytesP) BytesP {

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…