forked from verdnatura/hedera-web
29 lines
395 B
JavaScript
Executable File
29 lines
395 B
JavaScript
Executable File
/**
|
|
* The equivalent of a SQL function.
|
|
*
|
|
* @param {string} funcName The name of the function
|
|
* @param {Array#Sql.Expr} param Array with function parameters
|
|
**/
|
|
Sql.Func = new Class
|
|
({
|
|
Extends: Sql.Expr
|
|
,Properties:
|
|
{
|
|
name:
|
|
{
|
|
type: String
|
|
,value: null
|
|
},
|
|
params:
|
|
{
|
|
type: Sql.List
|
|
,value: null
|
|
}
|
|
}
|
|
|
|
,render: function (batch)
|
|
{
|
|
return this.name + '()';
|
|
}
|
|
});
|