mirror of
https://gitee.com/shuto/cordova-plugin-dbcopy.git
synced 2024-10-06 01:32:06 +08:00
Update README.md
This commit is contained in:
parent
191f414e14
commit
6bac370b03
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user