Represents an SQL function call.
Extends Instance PropertiesProperty | Type | Default Value | Description |
args | Array | READ ONLY args arguments will be literalized through patio.Dataset#literal and placed into the SQL function call. | |
f | String | READ ONLY the SQL function to call. | |
function (f){ var args = argsToArray(arguments).slice(1); this.__f = isInstanceOf(f, Identifier) ? f.value : f, this.__args = args.map(function (a) { return isString(a) ? sql.stringToIdentifier(a) : a; }); }
Converts the patio.sql.SQLFunction to a string.
Argumentsdataset used to created the SQL fragment, if the dataset is ommited then the default patio.Dataset implementation is used.
String the SQL version of the patio.sql.SQLFunction.
function (ds){ !Dataset && (Dataset = require("./dataset")); ds = ds || new Dataset(); return ds.functionSql(this); }