This mixin provides string concatenation methods ("concat");
Example
sql.x.sqlString.concat("y"); //=> "x" || "y"
define({
Return a patio.sql.StringExpression representing the concatenation of this expression with the given argument.
Example
sql.x.sqlString.concat("y"); //=> "x" || "y"
Arguments
expression to concatenate this expression with.
function (expression){
return new StringExpression("||", this, expression);
}
Return a patio.sql.Subscript with the given arguments, representing an SQL array access.
Example
sql.array.sqlSubscript(1) //=> array[1]
sql.array.sqlSubscript(1, 2) //=> array[1, 2]
sql.array.sqlSubscript([1, 2]) //=> array[1, 2]
Arguments
function (subscript){
var args = argsToArray(arguments);
return new SubScript(this, flatten(args));
}