Class ScriptDbResult

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 object that provides iterator-like access to the results of a database query. Use the methods hasNext() and next() in a loop to access all the results.

 
var db = ScriptDb.getMyDb();
 var results = db.query({type: 'person'});
 while (results.hasNext()) {
   var item = results.next();
   // Do something with the item.
 }
 

Deprecated methods










Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.