DB exec

From FreeSWITCH Wiki
Jump to: navigation, search

Description

This will execute a SQL statement. If you are doing a select you may want to look at DB.prepare instead.

Synopsis

exec(sql statement)

Example

use("CoreDB");

var db = new CoreDB("js");
var sql="delete from users";
db.exec(sql);