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