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
  1. sql.a.and(sql.b) //=> "a" AND "b"
  2. sql.a.or(sql.b) //=> "a" OR "b"
  3. sql.a.not() //=> NOT "a"

Constructor

Defined sql.js Source
  1. define({

and Function Public


Defined sql.js

Example
  1. sql.a.and(sql.b) //=> "a" AND "b"
Returns Source
  1. booleanMethod("and")

not Function Public


Defined sql.js

Logical NOT

Example
  1. sql.a.not() //=> NOT "a"
Returns Source
  1. function (){
  2. return BooleanExpression.invert(this);
  3. }

or Function Public


Defined sql.js

Example
  1. sql.a.or(sql.b) //=> "a" OR "b"
Returns Source
  1. booleanMethod("or")

Documentation generated using coddoc.