22 lines
348 B
JavaScript
22 lines
348 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, ', ')
|
|
+ ')';
|
|
}
|
|
})
|