How to rename a database in Web SQL?

225 views Asked by At

Is there a way to rename a database in Web SQL? I need a simple way to backup all data to another Web SQL database.

1

There are 1 answers

0
drinovc On BEST ANSWER

So there is no native way to do this. So the best answer should be: select * from ... each table you want to backup and iterate through results while inserting this data into new "backup" database. So there is no simpler way as rename or backup.

Thank you @Chuck