Overview
DataTable DataTable myDataTable.Save()
Remarks
Until Save method called all changes on data table is stored in memory. Save method flushes all changes to database.
Example
Scan all rows
Code Block | ||
---|---|---|
| ||
var table = $Database.Get({
Parameters : {
TargetSchema : 'HR',
TargetTable : 'Groups'
}
});
table.Each(function () {
this.Name = 'MyAdmin';
});
table.Save(); |
...
Scan all rows
Code Block | ||
---|---|---|
| ||
var table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function () { this.Name = 'MyAdmin'; }); table.Save(); |