Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create new store capability #22

Open
julienetie opened this issue Mar 31, 2024 · 0 comments
Open

Add create new store capability #22

julienetie opened this issue Mar 31, 2024 · 0 comments
Assignees

Comments

@julienetie
Copy link
Owner

Due to the way versioning works it is not possible to modify the schema of a database without creating a new version.

But this can be worked around by:

  • Copying existing stores from the DB to be modified
  • Deleting the database
  • Creating a new DB with new and existing store names
  • Populating the existing data back to the stores they came from

This API will be in the form of:

  • db.addStore()
  • db.deleteStore()

Taking one or many store names. And will do nothing if the store exists or does not exist respectively.

This feature will simplify the lifecycle management of Indexeddb.

@julienetie julienetie self-assigned this Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant