37 lines
511 B
JavaScript
37 lines
511 B
JavaScript
|
|
var Stmt = require ('./stmt');
|
|
var ListHolder = require ('./list-holder');
|
|
|
|
/**
|
|
* The equivalent of a SQL multi statement.
|
|
*/
|
|
module.exports = new Class
|
|
({
|
|
Extends: Stmt
|
|
,Implements: ListHolder
|
|
,Tag: 'sql-multi-stmt'
|
|
,Properties:
|
|
{
|
|
/**
|
|
* The statements list.
|
|
*/
|
|
stmts:
|
|
{
|
|
type: Array
|
|
,set: function (x)
|
|
{
|
|
this.list = x;
|
|
}
|
|
,get: function ()
|
|
{
|
|
return this.list;
|
|
}
|
|
}
|
|
}
|
|
|
|
,render: function (params)
|
|
{
|
|
return this.renderListWs (this.list, params, ";\n");
|
|
}
|
|
});
|