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).
Examplesql.a.and(sql.b) //=> "a" AND "b" sql.a.or(sql.b) //=> "a" OR "b" sql.a.not() //=> NOT "a"
define({
sql.a.and(sql.b) //=> "a" AND "b"Returns
patio.sql.BooleanExpression
a ANDed boolean expression.
booleanMethod("and")
Logical NOT
Examplesql.a.not() //=> NOT "a"Returns
patio.sql.BooleanExpression
a inverted boolean expression.
function (){ return BooleanExpression.invert(this); }
sql.a.or(sql.b) //=> "a" OR "b"Returns
patio.sql.BooleanExpression
a ORed boolean expression
booleanMethod("or")