This mixin includes the standard mathematical methods (+, -, *, and /) that are defined on objects that can be used in a numeric context in SQL.

Example
sql.a.plus(sql.b) //=> "a" + "b"
sql.a.minus(sql.b) //=> "a" - "b"
sql.a.multiply(sql.b) //=> "a" * "b"
sql.a.divide(sql.b) //=> "a" / "b"
            

Constructor

Defined sql.js Source
define({
            

divide Function Public


Defined sql.js

Example
sql.a.divide(sql.b)  //=> "a" / "b"
        
Returns Source
numericMethod("divide")
    

minus Function Public


Defined sql.js

Example
sql.a.minus(sql.b)  //=> "a" - "b"
        
Returns Source
numericMethod("minus")
    

multiply Function Public


Defined sql.js

Example
sql.a.multiply(sql.b)  //=> "a" * "b"
        
Returns Source
numericMethod("multiply")
    

plus Function Public


Defined sql.js

Example
sql.a.plus(sql.b)  //=> "a" + "b"
        
Returns Source
numericMethod("plus")
    

Documentation generated using coddoc.