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
realm.deleteRealm #169
realm.deleteRealm #169
Conversation
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.
This should use the Core API instead of manually deleting the files. It's not a problem when you're the only process accessing a file, but it becomes an issue with multiprocess access.
@nirinchev yes, we have delete_files function in the core API for .Net, but I couldn't find such method exposed in realm.h for Dart sdk. That's why we decided to implement it in Dart. |
Indeed we are referencing core v11.8 which does not have the delete files api. It was only recently added in realm/realm-core@9913f7d |
It will be great. I will change it as soon as we have the new version. |
@desistefanova ok I merged #170 which includes |
Done. |
Co-authored-by: blagoev <lubo@blagoev.com>
Co-authored-by: blagoev <lubo@blagoev.com>
deleteRealm return type changed from bool to void
… into realm.deleteRealm
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.
👍 with small change requested
Co-authored-by: blagoev <lubo@blagoev.com>
@nirinchev we've changed the implementation to use |
… into realm.deleteRealm # Conflicts: # lib/src/realm_class.dart
Realm deleteRealm implemented - fixes #49