英語 での Realm file の使用例とその 日本語 への翻訳
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
Your bundled realm file will be accessible to your app.
If your app does, you might leave your Realm file in a corrupted state.
Put your Realm files in a subdirectory of the standard location by passing in a relative path.
At this point, your bundled realm file will be accessible to your app.
You can refer to our migration sampleapp for an example of how to use a bundled realm file.
Drag the new compacted copy of your realm file to your final app's Xcode Project Navigator.
Note the Realm file will maintain its size on disk to efficiently reuse that space for future objects.
Drag the new compacted copy of your realm file to your final app's Xcode Project Navigator.
Note the Realm file will maintain its size on disk to efficiently reuse that space for future objects.
It is important not to ignore this exception. If your app does,you might leave your Realm file in a corrupted state.
NOTE: If you are shipping prebuild Realm files with your app, you have to upgrade those to the new version.
Permission modifying objects can be added to the Realm toapply those changes to the access control settings of a Realm file.
Go to your app target's build phases tab in Xcode andadd the realm file to the"Copy Bundle Resources" build phase.
Finding a Realm File If you need help finding your app's Realm file, check this StackOverflow answer for detailed instructions.
Go to your app target's build phases tab in Xcode andadd the realm file to the"Copy Bundle Resources" build phase.
Please note the Realm file format is also completely cross-platform, allowing data to be shared across iOS& Android easily.
Permission Change objects can be added to the Realm toapply those changes to the access control settings of a Realm file.
If you're using multiple Realm files, add ContentPage and ContentElement to the desired object schema.
This means that if you are in the middle of development and changing your schema very often, and you are OK with losing all your data,you can delete your. realm file on disk(and the entire dataset it contained!) instead of having to write a migration.
Finding a Realm File If you need help finding your app's Realm file, check this StackOverflow answer for detailed instructions.
Realm instances accessing the same realm file must also all use the same RealmConfiguration.
Finding a Realm File If you need help finding your app's Realm file, check this StackOverflow answer for detailed instructions.
Modifying Permissions Modifying the access control settings for a Realm file is performed through one of two means: change objects and offer/response objects.
Realm files cannot be accessed by concurrent processes Although Realm files can be accessed by multiple threads concurrently, they can only be accessed by a single process at a time.
If your app continues running,accessing the Realm file might leave your Realm file in a corrupted or an inconsistent state.
Unlike most files, Realm files are memory-mapped and Realm instances expect the files to be available for the duration of the instance's lifetime.
Realm instances accessing the same realm file must also all use the same RLMRealmConfiguration.
FAQ How can find and view the content of my Realm file(s)? This SO question describes where to find your Realm file.
Using a Realm Across Threads To access the same Realm file from different threads, you must initialize a new Realm to get a different instance for every thread of your app.