hedera-web/js/sql/table.js

30 lines
382 B
JavaScript
Raw Normal View History

2016-09-26 09:28:47 +00:00
2022-05-26 06:08:31 +00:00
var Target = require('./target');
2016-09-26 09:28:47 +00:00
/**
2016-09-26 09:28:47 +00:00
* Represents a database table.
2022-05-26 06:08:31 +00:00
*/
2016-09-26 09:28:47 +00:00
module.exports = new Class
({
2016-09-26 09:28:47 +00:00
Extends: Target
,Properties:
{
name:
{
type: String
,value: null
},
schema:
{
type: String
,value: null
}
}
2022-05-26 06:08:31 +00:00
,render: function(batch) {
2015-03-31 15:14:44 +00:00
var sql = this.schema ? '`' + this.schema + '`.' : '';
sql += '`' + this.name + '`';
return sql;
}
});