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

20 lines
341 B
JavaScript

var Dml = require('./dml');
/**
* The equivalent of a SQL insert.
*/
module.exports = new Class({
Extends: Dml
,render: function(params) {
return 'INSERT INTO'
+ this.renderTarget(params)
+ ' ('
+ this.renderListWs(this.field, params, ', ')
+ ') VALUES ('
+ this.renderListWs(this.expr, params, ', ')
+ ')';
}
})