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

Introduce method to clear data in index tables #22

Closed
achou11 opened this issue Jan 10, 2024 · 0 comments · Fixed by #24
Closed

Introduce method to clear data in index tables #22

achou11 opened this issue Jan 10, 2024 · 0 comments · Fixed by #24

Comments

@achou11
Copy link
Member

achou11 commented Jan 10, 2024

Relevant for digidem/comapeo-core#241

Leaving a project involves deletion of core data. Given that this indexer works with such data, we should introduce a method that clears the relevant sql tables where the indexed data lives (i.e. both the index table and the corresponding backlink table)

EvanHahn added a commit that referenced this issue Jan 22, 2024
This adds `indexer.deleteAll()`, which deletes all rows from the docs
table and the backlinks table.

Addresses #22.
@EvanHahn EvanHahn linked a pull request Jan 22, 2024 that will close this issue
EvanHahn added a commit that referenced this issue Jan 22, 2024
This adds `indexer.deleteAll()`, which deletes all rows from the docs
table and the backlinks table.

Addresses #22.
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 a pull request may close this issue.

1 participant