MCPcopy
hub / github.com/dropbox/godropbox / EqL

Function EqL

database/sqlbuilder/expression.go:450–452  ·  view source on GitHub ↗

Returns a representation of "a=b", where b is a literal

(lhs Expression, val interface{})

Source from the content-addressed store, hash-verified

448
449// Returns a representation of "a=b", where b is a literal
450func EqL(lhs Expression, val interface{}) BoolExpression {
451 return Eq(lhs, Literal(val))
452}
453
454// Returns a representation of "a!=b"
455func Neq(lhs, rhs Expression) BoolExpression {

Callers 15

TestAndExprMethod · 0.85
TestOrExprMethod · 0.85
TestNegateExprMethod · 0.85
TestEqExprMethod · 0.85
TestEqExprNilLHSMethod · 0.85
TestJoinNilLeftTableMethod · 0.85
TestJoinNilRightTableMethod · 0.85
TestUpdateSingleValueMethod · 0.85
TestUpdateMultiValuesMethod · 0.85

Calls 2

EqFunction · 0.85
LiteralFunction · 0.85

Tested by 15

TestAndExprMethod · 0.68
TestOrExprMethod · 0.68
TestNegateExprMethod · 0.68
TestEqExprMethod · 0.68
TestEqExprNilLHSMethod · 0.68
TestJoinNilLeftTableMethod · 0.68
TestJoinNilRightTableMethod · 0.68
TestUpdateSingleValueMethod · 0.68
TestUpdateMultiValuesMethod · 0.68