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

fix: Fix re-opening the database with same index name #23

Merged

Conversation

fl0rek
Copy link
Contributor

@fl0rek fl0rek commented Aug 7, 2024

Hey thanks for all the good work on rust wasm ecosystem!
We're using rexie and encountered following issue when porting our code to rexie 0.6 and traced it back here:
IndexedDB returns ConstraintError when trying to create index with name that already exists. Add check whether index name already exists and skip creating it or re-create it as necessary.

IndexedDB returns `ConstraintError` when trying to create index with
name that already exists. Add check whether index name already exists
and skip creating it or re-create it as necessary.
Copy link
Owner

@devashishdxt devashishdxt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks finding this bug and creating a PR.

@devashishdxt devashishdxt merged commit 11e15ae into devashishdxt:main Aug 8, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants