-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
6009
Problem
Currently we have deleteAll() method in realm which help use to delete all models from realm. But there are N number of use case where we need a way to reset the db instead deleting the models. By now, we can only do it a way getting all objects and delete it.
But we need a way to reset the model without we do all this.
For example: if a user change from one region to another. We need to remove all pref and data from the region and add new data. If we use deleteAll() it also losing the it reference which causing errors.
Solution
Implementation of resetAll() and reset(['Model1', 'Model2']) which helps to reset data instead of calling a objects of all models and deleting it.
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
- mentioned in
-
Page Loading...