0
1
Fork 0
hedera-web-mindshore/js/sql/multi-stmt.js

31 lines
494 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");
}
});