Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename an IndexedDB database?

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.

like image 543
cuixiping Avatar asked Nov 22 '13 13:11

cuixiping


1 Answers

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.

like image 95
GemK Avatar answered Oct 29 '22 04:10

GemK