MCPcopy Index your code
hub / github.com/upper/db / Or

Method Or

union.go:34–43  ·  view source on GitHub ↗

Or adds more expressions to the group.

(orConds ...LogicalExpr)

Source from the content-addressed store, hash-verified

32
33// Or adds more expressions to the group.
34func (o *OrExpr) Or(orConds ...LogicalExpr) *OrExpr {
35 var fn func(*[]LogicalExpr) error
36 if len(orConds) > 0 {
37 fn = func(in *[]LogicalExpr) error {
38 *in = append(*in, orConds...)
39 return nil
40 }
41 }
42 return &OrExpr{o.LogicalExprGroup.Frame(fn)}
43}
44
45// Empty returns false if the expressions has zero conditions.
46func (o *OrExpr) Empty() bool {

Callers 4

TestCondFunction · 0.95
TestSelectFunction · 0.80
TestFibonacciMethod · 0.80

Calls 1

FrameMethod · 0.80

Tested by 2

TestCondFunction · 0.76
TestSelectFunction · 0.64