移動數據庫引擎Realm Java v3.1.0 發布

Realm 是一個跨平臺的移動數據庫引擎,可運行于手機、平板和可穿戴設備之上。于 2014 年 7 月發布,準確來說,它是專門為移動應用所設計的數據持久化解決方案之一。 Realm 可以輕松地移植到您的項目當中,并且絕大部分常用的功能(比如說插入、查詢等等)都可以用一行簡單的代碼輕松完成! Realm 并不是對 Core Data 的簡單封裝,相反地, Realm 并不是基于 Core Data ,也不是基于 SQLite 所構建的。它擁有自己的數據庫存儲引擎,可以高效且快速地完成數據庫的構建操作。
更新日志
- Updated file format of Realm files. Existing Realm files will automatically be migrated to the new format when they are opened, but older versions of Realm cannot open these files.
- [ObjectServer] Due to file format changes, Realm Object Server 1.3.0 or later is required.
- Added support for reverse relationships through the
@LinkingObjectsannotation. Seeio.realm.annotations.LinkingObjectsfor documentation. - This feature is in
@Beta. - Queries on linking objects do not work. Queries like
where(...).equalTo("field.linkingObjects.id", 7).findAll()are not yet supported. - Backlink verification is incomplete. Evil code can cause native crashes.
- The listener on
RealmObjectwill only be triggered if the object changes (#3894). - Added
RealmObjectChangeListenerinterface that provide detailed information aboutRealmObjectfield changes. - Listeners on
RealmListandRealmResultswill be triggered immediately when the transaction is committed on the same thread (#4245). - The real
RealmMigrationNeededExceptionis now thrown instead ofIllegalArgumentExceptionif no migration is provided for a Realm that requires it. RealmQuery.distinct()can be performed on unindexed fields (#2285).targetSdkVersionis now 25.- [ObjectServer] In case of a Client Reset, information about the location of the backed up Realm file is now reported through the
ErrorHandlerinterface (#4080). - [ObjectServer] Authentication URLs now automatically append
/authif no other path segment is set (#4370). - Crash with
LogicErrorwithBad version numberon notifier thread (#4369). Realm.migrateRealm(RealmConfiguration)now fails correctly with anIllegalArgumentExceptionif aSyncConfigurationis provided (#4075).- Fixed a potential cause for Realm file corruptions (never reported).
- Add
@Overrideannotation to proxy class accessors and stop using raw type in proxy classes in order to remove warnings from javac (#4329). findFirstAsync()now returns an invalid object if there is no object matches the query condition instead of running the query repeatedly until it can find one (#4352).- [ObjectServer] Changing the log level after starting a session now works correctly (#4337).
- Using the Object Store's Session and SyncManager.
- Upgraded to Realm Sync 1.5.0.
- Upgraded to Realm Core 2.5.1.
- Upgraded Gradle to 3.4.1
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/360cd82b
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!