-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/add database wipe methods #41
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
Conversation
- Add activity_wipe_all() to clear all activities and tags - Add blocktank_remove_all_orders() to clear order history - Add blocktank_remove_all_cjit_entries() to clear CJIT entries - Add blocktank_wipe_all() to clear all blocktank tables - Add wipe_all_databases() for global database reset - Update tests accordingly
|
@coreyphillips Can we add @ben-kaufman as reviewer too? |
ben-kaufman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't go over the tests updates yet, but just sharing a few very small comments meanwhile.
Also can you please just explain the rationale/ reason behind adding this wiping option?
I can answer this, but since it surfaces an issue I want us to get better at, I will also make my case on it:
With that being said, the rationale behind adding the wipe option is to give the mobile native apps the freedom to programmatically control the file storage managed by bitkit core. |
- Add get_activity_db() helper to reduce code duplication - Ensure wipe_all_databases() requires initialized DBs - Remove unused methods: remove_all_tags(), remove_all_info() - Consolidate remove_all() into wipe_all() to remove the wrapper - Document that enum state tables persist across wipes
ben-kaufman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pwltr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested but looks good
- Updates bindings - Bumps version to 0.1.20
This PR:
activity_wipe_all()to clear all activities and tagsblocktank_remove_all_orders()to clear order historyblocktank_remove_all_cjit_entries()to clear CJIT entriesblocktank_wipe_all()to clear all blocktank tableswipe_all_databases()for global database reset