Database.Persist.Sql.Lifted.Expression.Bool
not_ :: SqlExpr (Value Bool) -> SqlExpr (Value Bool) #
(&&.) :: SqlExpr (Value Bool) -> SqlExpr (Value Bool) -> SqlExpr (Value Bool) infixr 3 #
This operator translates to the SQL operator AND.
AND
Example:
where_ $ user ^. UserName ==. val Matt &&. user ^. UserAge >=. val 21
(||.) :: SqlExpr (Value Bool) -> SqlExpr (Value Bool) -> SqlExpr (Value Bool) infixr 2 #
where_ $ user ^. UserName ==. val Matt ||. user ^. UserName ==. val John