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

Add Realm.Compact #968

Merged
merged 6 commits into from
Dec 9, 2016
Merged

Add Realm.Compact #968

merged 6 commits into from
Dec 9, 2016

Conversation

nirinchev
Copy link
Member

@nirinchev nirinchev commented Dec 4, 2016

Resolves #967

Waiting for #976 - should be a small fix, so better to have it in.

Docs are updated for Compact.

using (var realm = Realm.GetInstance())
{
var initialSize = new FileInfo(realm.Config.DatabasePath).Length;
Assert.IsFalse(Realm.Compact());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer Assert.That(.., Is.False) but for whatever reason I use Assert.Throws so I should get off my high horse...

@nirinchev nirinchev merged commit 2a41765 into master Dec 9, 2016
@nirinchev nirinchev deleted the ni/compact branch December 9, 2016 16:10
@nirinchev nirinchev removed the S:Review label Dec 9, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose realm-core compact()
2 participants