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