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

31 lines
494 B
JavaScript
Raw Normal View History

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