hedera-web/js/sql/multi-stmt.js

37 lines
511 B
JavaScript
Raw Normal View History

2016-09-26 09:28:47 +00:00
var Stmt = require ('./stmt');
2017-11-13 16:36:30 +00:00
var ListHolder = require ('./list-holder');
2016-09-26 09:28:47 +00:00
/**
* The equivalent of a SQL multi statement.
2016-12-20 09:32:17 +00:00
*/
2016-09-26 09:28:47 +00:00
module.exports = new Class
({
2016-09-26 09:28:47 +00:00
Extends: Stmt
2017-11-13 16:36:30 +00:00
,Implements: ListHolder
,Tag: 'sql-multi-stmt'
,Properties:
{
2017-11-13 16:36:30 +00:00
/**
* The statements list.
*/
stmts:
{
type: Array
,set: function (x)
{
this.list = x;
}
,get: function ()
{
return this.list;
}
}
}
2017-11-13 16:36:30 +00:00
,render: function (params)
{
2017-11-16 14:53:20 +00:00
return this.renderListWs (this.list, params, ";\n");
}
});