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.
Asked
Active
Viewed 190 times
2
-
Why not just use the backup command? – Chuck Jun 18 '15 at 15:28
-
Is there such thing? I can't find it. – drinovc Jun 19 '15 at 10:41
-
A quick search found this: [link](http://www.raymondcamden.com/2014/02/24/Creating-a-data-backup-of-a-WebSQL-database) – Chuck Jun 19 '15 at 15:19
1 Answers
1
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

drinovc
- 521
- 5
- 16