electricControl/script/dbUtils.js

21 lines
428 B
JavaScript

var dbUtils = {
execute:function(db, sql, callback){
db.executeSql({
name: 'test',
sql: sql
}, function(ret, err) {
callback(ret, err);
});
},
select:function(db, sql, callback){
db.selectSql({
name: 'test',
sql: sql
}, function(ret, err) {
callback(ret, err);
});
},
}
export {
dbUtils
}