Additional functionality for databases on DroidScript platform.
versions
- Modified the `ExecuteSql' function to return a Promise if no arguments are passed as callbacks for success and failure.
var s = "";
var len = results.rows.length;
for(var i = 0; i < len; i++ )
{
var item = results.rows.item(i)
s += item.id + ", " + item.data + ", " + item.data_num + "\n";
}
txt.SetText( s ); var s = "";
for (var item of res) {
s += item.id + ", " + item.data + ", " + item.data_num + "\n";
}
results.SetText(s);- Added an Iterator to the results returned by the
ExecuteSqlfunction.