This mixin includes the standard mathematical methods (+, -, *, and /) that are defined on objects that can be used in a numeric context in SQL.
Examplesql.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"
define({
sql.a.divide(sql.b) //=> "a" / "b"Returns
patio.sql.NumericExpression
numericMethod("divide")
sql.a.minus(sql.b) //=> "a" - "b"Returns
patio.sql.NumericExpression
numericMethod("minus")
sql.a.multiply(sql.b) //=> "a" * "b"Returns
patio.sql.NumericExpression
numericMethod("multiply")
sql.a.plus(sql.b) //=> "a" + "b"Returns
patio.sql.NumericExpression
numericMethod("plus")