0
1
Fork 0
hedera-web-mindshore/js/sql/function.js

35 lines
518 B
JavaScript
Raw Normal View History

/**
* 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
},
schema:
{
type: String
,value: null
},
params:
{
type: Sql.List
,value: null
}
}
,render: function (batch)
{
var sql = (this.schema) ? '`' + this.schema + '`.' : '';
return sql + '`' + this.name + '`()';
}
});