2016-09-26 09:28:47 +00:00
|
|
|
|
|
|
|
var Stmt = require ('./stmt');
|
2022-05-30 01:30:33 +00:00
|
|
|
var ListHolder = require ('./list-holder');
|
2016-09-26 09:28:47 +00:00
|
|
|
|
2015-01-23 13:09:30 +00:00
|
|
|
/**
|
|
|
|
* The equivalent of a SQL multi statement.
|
2022-05-26 06:08:31 +00:00
|
|
|
*/
|
2016-09-26 09:28:47 +00:00
|
|
|
module.exports = new Class
|
2015-01-23 13:09:30 +00:00
|
|
|
({
|
2016-09-26 09:28:47 +00:00
|
|
|
Extends: Stmt
|
2022-05-30 01:30:33 +00:00
|
|
|
,Implements: ListHolder
|
|
|
|
,Tag: 'sql-multi-stmt'
|
|
|
|
,Properties:
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
2022-05-30 01:30:33 +00:00
|
|
|
/**
|
|
|
|
* The statements list.
|
|
|
|
*/
|
|
|
|
stmts:
|
2015-03-19 19:36:11 +00:00
|
|
|
{
|
2022-05-30 01:30:33 +00:00
|
|
|
type: Array
|
|
|
|
,set: function (x)
|
|
|
|
{
|
|
|
|
this.list = x;
|
|
|
|
}
|
|
|
|
,get: function ()
|
|
|
|
{
|
|
|
|
return this.list;
|
|
|
|
}
|
2015-03-19 19:36:11 +00:00
|
|
|
}
|
2022-05-30 01:30:33 +00:00
|
|
|
}
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2022-05-30 01:30:33 +00:00
|
|
|
,render: function (params)
|
|
|
|
{
|
|
|
|
return this.renderListWs (this.list, params, ";\n");
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
});
|