0
1
Fork 0
hedera-web-mindshore/js/sql/table.js

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