-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathsqlDB.js
21 lines (16 loc) · 811 Bytes
/
sqlDB.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var exec = require('cordova/exec');
exports.copy = function(dbname, location, success, error) {
exec(success, error, "sqlDB", "copy", [dbname, location]);
};
exports.remove = function(dbname, location, success,error) {
exec(success, error, "sqlDB", "remove", [dbname, location]);
};
exports.copyDbToStorage = function(dbname,location,destination, overwrite, success,error){
exec(success, error, "sqlDB", "copyDbToStorage", [dbname, location, destination, overwrite]);
};
exports.copyDbFromStorage = function(dbname,location,source, deleteolddb, success,error){
exec(success, error, "sqlDB", "copyDbFromStorage", [dbname, location, source, deleteolddb]);
};
exports.checkDbOnStorage = function(dbname,source, success,error){
exec(success, error, "sqlDB", "checkDbOnStorage", [dbname, source]);
};