This mixin includes the inequality methods (>, <, >=, <=) that are defined on objects that can be used in a numeric or string context in SQL.

Example
  1. sql.a.gt("b") //=> a > "b"
  2. sql.a.lt("b") //=> a > "b"
  3. sql.a.gte("b") //=> a >= "b"
  4. sql.a.lte("b") //=> a <= "b"
  5. sql.a.eq("b") //=> a = "b"

Constructor

Defined sql.js Source
  1. define({

between Function Private


Defined sql.js

Example
  1. sql.x.between([1,2]) => //=> WHERE ((x >= 1) AND (x <= 10))
  2. sql.x.between([1,2]).invert() => //=> WHERE ((x < 1) OR (x > 10))
Arguments Returns Source
  1. function (items){
  2. return new BooleanExpression("AND", new BooleanExpression("gte", this, items[0]), new BooleanExpression("lte", this, items[1]));
  3. }

eq Function Public


Defined sql.js

Example
  1. sql.a.eq("b") //=> a = "b"
Returns Source
  1. inequalityMethod("eq")

gt Function Public


Defined sql.js

Example
  1. sql.a.gt("b") //=> a > "b"
Returns Source
  1. inequalityMethod("gt")

gte Function Public


Defined sql.js

Example
  1. sql.a.gte("b") //=> a >= "b"
Returns Source
  1. inequalityMethod("gte")

lt Function Public


Defined sql.js

Example
  1. sql.a.lt("b") //=> a < "b"
Returns Source
  1. inequalityMethod("lt")

lte Function Public


Defined sql.js

Example
  1. sql.a.lte("b") //=> a <= "b"
Returns Source
  1. inequalityMethod("lte")

Documentation generated using coddoc.