forked from verdnatura/hedera-web
20 lines
341 B
JavaScript
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, ', ')
|
|
+ ')';
|
|
}
|
|
})
|