Hide
Apps Script

Class ScriptDbMap

ScriptDbMap

Deprecated. ScriptDB was deprecated on May 15, 2014, and will be turned off on November 20, 2014. To move your data to a different type of database, see the guide to migrating from ScriptDB.

An item that was saved to or retrieved from the database. The original object's fields can be accessed as usual, using either the dot or bracket notation.

 

 var db = ScriptDb.getMyDb();
 var item = db.save({
   type: 'person',
   name: 'fred',
   age: 25
 });
 Logger.log('Name: ' + item.name);
 Logger.log('Age: ' + item['age']);
 

Deprecated methods