forked from verdnatura/hedera-web
31 lines
386 B
JavaScript
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;
|
|
}
|
|
});
|