Reputation: 182
I've been sifting through the docs for Realm and I can't figure out two things:
What is the default path that Realm stores the DB upon creation via the app using Realm?
What tools are available to pre-populate a DB? An editor that's JSON friendly?
Where in my project structure would a pre-populated DB reside?
Thanks.
Upvotes: 3
Views: 938
Reputation: 182
For anyone that stumbled across the original question about #2, I found a tool that addresses this: Realm Browser.
https://itunes.apple.com/us/app/realm-browser/id1007457278?mt=12
Upvotes: 2
Reputation: 1447
default.realm
. This path can be read/set by accessing Realm.defaultPath
.Realm.copyBundledRealmFiles()
to copy all realm files bundled with the app to the default data directory at which point you can open them normally.Upvotes: 1