Defines boolean/logical AND (&), OR (|) and NOT (~) operators that are defined on objects that can be used in a boolean context in SQL ( patio.sql.LiteralString, and patio.sql.GenericExpression).
Example
- sql.a.and(sql.b) //=> "a" AND "b"
- sql.a.or(sql.b) //=> "a" OR "b"
- sql.a.not() //=> NOT "a"
- define({
Returns
- sql.a.and(sql.b) //=> "a" AND "b"
patio.sql.BooleanExpression
a ANDed boolean expression.
- booleanMethod("and")
Logical NOT
ExampleReturns
- sql.a.not() //=> NOT "a"
patio.sql.BooleanExpression
a inverted boolean expression.
- function (){
- return BooleanExpression.invert(this);
- }
Returns
- sql.a.or(sql.b) //=> "a" OR "b"
patio.sql.BooleanExpression
a ORed boolean expression
- booleanMethod("or")