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 support for RealmConfiguration.initialData() #579

Closed
sync-by-unito bot opened this issue Nov 22, 2021 · 1 comment
Closed

Add support for RealmConfiguration.initialData() #579

sync-by-unito bot opened this issue Nov 22, 2021 · 1 comment

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Nov 22, 2021

Similar to Realm Java we should add support for easily adding data to new Realm files through an initial write transaction. This should be triggered if this is the first time the Realm file is opened (i.e. no file exists on disk). Configuring an asset file at the same time should be an error.

Suggested API:

RealmConfiguration.Builder.initialData(transaction: MutableRealm.() -> Unit)
@sync-by-unito sync-by-unito bot changed the title Add support for RealmConfiguration.initialData() Add support for RealmConfiguration.initialData() Aug 19, 2022
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Oct 6, 2022

➤ Christan Melchior commented:

This was added in 1.0.0

@sync-by-unito sync-by-unito bot closed this as completed Oct 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 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

No branches or pull requests

0 participants