This is the parent of all expressions.

Constructor

Defined sql.js

fromArgs Static Function Public


Defined sql.js

This is a helper method that will take in an array of arguments and return an expression.

Example
QualifiedIdentifier.fromArgs(["table", "column"]);
        
Arguments Returns Source
function (args){
   var ret, Self = this;
   try {
       ret = new Self();
   } catch (ignore) {
   }
   this.apply(ret, args);
   return ret;
           
}
    

isConditionSpecifier Static Function Public


Defined sql.js

Helper to determine if something is a condition specifier. Returns true if the object is a Hash or is an array of two element arrays.

Example
Expression.isConditionSpecifier({a : "b"}); //=> true
Expression.isConditionSpecifier("a"); //=> false
Expression.isConditionSpecifier([["a", "b"], ["c", "d"]]); //=> true
Expression.isConditionSpecifier([["a", "b", "e"], ["c", "d"]]); //=> false
        
Arguments Returns Source
function (obj){
   return isHash(obj) || (isArray(obj) && obj.length && obj.every(function (i) {
           return isArray(i) && i.length === 2;
       }));
           
}
    

sqlLiteral Function Public


Defined sql.js

Returns the string representation of this expression

Arguments Returns Source
function (ds){
   return this.toString(ds);
           
}
    

Documentation generated using coddoc.