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 remove-rx-database.test.ts unit test #6848

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wazzu3000
Copy link

This PR contains:

  • IMPROVED TESTS

Describe the problem you have without this PR

The function removeRxDatabase is not removing the database and all queries to this database still returning values.

@pubkey
Copy link
Owner

pubkey commented Feb 17, 2025

removeRxDatabase will delete the storage on disc. It has no way of finding already created database instances and clearing the cache of them. So when you re-run your query, you get the results from the cache. I think we should add this to the docs. If you know the db instance already, use database.remove() instead.

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