var Stmt = require ('./stmt'); /** * The equivalent of a SQL delete. */ module.exports = new Class ({ Extends: Stmt ,Tag: 'sql-delete' ,render: function (params) { var sql = 'DELETE FROM ' + this.renderTarget (params); if (this.where) sql += ' WHERE ' + this.where.render (params); sql += this.renderLimit(params); return sql; } });