an-rahulpandey / cordova-plugin-dbcopy

Copy SQLite Database from www folder to default app database location
Apache License 2.0
89 stars 47 forks source link

customize output file name #60

Open Davidavid88 opened 5 years ago

Davidavid88 commented 5 years ago

How can I define output file name by customize in copyDbtoStorage in ionic? Thank You!

an-rahulpandey commented 5 years ago

Hi @Davidavid88 , Currently there is no option in JS to modify the destination db file name. It uses the same filename as source The existing code is here https://github.com/an-rahulpandey/cordova-plugin-dbcopy/blob/master/src/android/sqlDB.java#L236