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

Function And

intersection.go:69–71  ·  view source on GitHub ↗

And joins conditions under logical conjunction. Conditions can be represented by `db.Cond{}`, `db.Or()` or `db.And()`. Examples: // name = "Peter" AND last_name = "Parker" db.And( db.Cond{"name": "Peter"}, db.Cond{"last_name": "Parker "}, ) // (name = "Peter" OR name = "Mickey") AND last_

(conds ...LogicalExpr)

Source from the content-addressed store, hash-verified

67// db.Cond{"last_name": "Mouse"},
68// )
69func And(conds ...LogicalExpr) *AndExpr {
70 return &AndExpr{adapter.NewLogicalExprGroup(adapter.LogicalOperatorAnd, conds...)}
71}
72
73var _ = adapter.LogicalExpr(&AndExpr{})

Callers 2

TestCondFunction · 0.70
defaultJoinFunction · 0.70

Calls 1

NewLogicalExprGroupFunction · 0.92

Tested by 1

TestCondFunction · 0.56