How to rename an IndexedDB database?
indexeddb, javascript
Solution
From the main Documentation :
Every database has a name which identifies it within a specific origin.The name can be any string value, including the empty string, and stays constant for the lifetime of the database.
So, as it says, the name remains same for entire life.
Problem
I created an IndexedDB databse named "A" by indexedDB.open method. Now I want to modify the database name to "B", how can I do it? I dont't want to create a new database with new name and copy all data from old database to new database.