DB next

From FreeSWITCH Wiki
Jump to: navigation, search

This goes to the next row, presumably after you have DB.fetch()ed it.

Synopsis

next()

Example

use("CoreDB");

var db = new CoreDB("js");
var sql="select * from users;";
db.prepare(sql);
while(db.next()) {
   hash = db.fetch();
   console_log("name = " + hash["name"] + " number " + hash["did"] + "\n");
}

See Also