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

Method And

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

And adds more expressions to the group.

(andConds ...LogicalExpr)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

FrameMethod · 0.80

Tested by

no test coverage detected