We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In order to prevent the situation described in #7139, a method to check if a file format upgrade can be perform would be useful.
With the method, SDKs can throw an exception if the SoftResetFile schema mode is set - preventing unexpected data loss.
SoftResetFile
bool SharedRealm::canUpgradeFileFormat(std::string path);
The text was updated successfully, but these errors were encountered:
The question is if deleting the file in this scenario is the right thing to do.
Sorry, something went wrong.
I have chosen just not to delete the file. Whether the file should be upgraded or not has nothing to do with the schema.
jedelbo
Successfully merging a pull request may close this issue.
Describe your problem or use case
In order to prevent the situation described in #7139, a method to check if a file format upgrade can be perform would be useful.
With the method, SDKs can throw an exception if the
SoftResetFile
schema mode is set - preventing unexpected data loss.Describe the solution you'd like
Additional context
The text was updated successfully, but these errors were encountered: