Database

class Database()
Delete()

Удаляет БД

db.Delete()
ExequteSql(sql)

Выполняет sql запрос

db.ExequteSql('select * from table');
db.ExecuteSql( "select * from test_table;", [], OnResult );

function OnResult(result){
    var item = result[0]
    /*
     * result.rows
     * item.id
     * item.data
     * item.data_num
     */
}

db.ExecuteSql("INSERT INTO test_table (data, data_num) VALUES (?,?)", ["test", 100], null, function(msg){});
Close()
Delete()
ExecuteSql(sql, params, success, error)
GetName()
GetType()
openError(e)
openSuccess()