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

18 lines
312 B
JavaScript

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