hedera-web/js/sql/table.js

31 lines
386 B
JavaScript

var Target = require ('./target');
/**
* Represents a database table.
**/
module.exports = new Class
({
Extends: Target
,Properties:
{
name:
{
type: String
,value: null
},
schema:
{
type: String
,value: null
}
}
,render: function (batch)
{
var sql = this.schema ? '`' + this.schema + '`.' : '';
sql += '`' + this.name + '`';
return sql;
}
});