2015-01-23 13:09:30 +00:00
|
|
|
/**
|
|
|
|
* The equivalent of a SQL DML.
|
|
|
|
**/
|
|
|
|
Sql.Dml = new Class
|
|
|
|
({
|
|
|
|
Extends: Sql.Stmt
|
|
|
|
|
|
|
|
,field: []
|
|
|
|
,expr: []
|
|
|
|
|
|
|
|
,addSet: function (fieldName, value)
|
|
|
|
{
|
|
|
|
this.expr.push (new Sql.Value ({value: value}));
|
|
|
|
this.field.push (new Sql.Field ({name: fieldName}));
|
|
|
|
}
|
|
|
|
|
2015-03-19 19:36:11 +00:00
|
|
|
,addExpr: function (fieldName, expr)
|
|
|
|
{
|
|
|
|
this.expr.push (expr);
|
|
|
|
this.field.push (new Sql.Field ({name: fieldName}));
|
|
|
|
}
|
|
|
|
|
2015-01-23 13:09:30 +00:00
|
|
|
,delSet: function ()
|
|
|
|
{
|
|
|
|
this.field.splice (0, this.field.length);
|
|
|
|
this.expr.splice (0, this.expr.length);
|
|
|
|
}
|
|
|
|
});
|