30 lines
382 B
JavaScript
30 lines
382 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;
|
|
}
|
|
});
|