Update README.md

This commit is contained in:
Rahul Pandey 2017-03-14 17:07:38 +05:30 committed by GitHub
parent 191f414e14
commit 6bac370b03

View File

@ -115,7 +115,7 @@ This is an untested version. Let me know if you have any suggestions. Also Pull
This is an untested version. Let me know if you have any suggestions. Also Pull Request are always welcome.
```javascript
window.plugins.sqlDB.copyDbToStorage(dbname, location, destination, success, error);
window.plugins.sqlDB.copyDbToStorage(dbname, location, destination, overwrite, success, error);
```
Here -
@ -132,6 +132,8 @@ This is an untested version. Let me know if you have any suggestions. Also Pull
```
**destination** -> Destination File location like /sdcard/mydb/ Please provide a valid existing location and "/" should be present at the end of the path. Do not append db name in the path.
**overwrite** -> if set to true, then will replace the file at the destination. Otherwise will throw an error, if destination file already exists.
**success** -> function will be called if the db is copied sucessfully.
**error** -> function will be called if the there is some problem in copying the db or the file already exists on the location.