移動數據庫引擎Realm Java v2.1.0 發布
Realm 是一個跨平臺的移動數據庫引擎,可運行于手機、平板和可穿戴設備之上。于 2014 年 7 月發布,準確來說,它是專門為移動應用所設計的數據持久化解決方案之一。 Realm 可以輕松地移植到您的項目當中,并且絕大部分常用的功能(比如說插入、查詢等等)都可以用一行簡單的代碼輕松完成! Realm 并不是對 Core Data 的簡單封裝,相反地, Realm 并不是基于 Core Data ,也不是基于 SQLite 所構建的。它擁有自己的數據庫存儲引擎,可以高效且快速地完成數據庫的構建操作。
更新日志
對象服務器API更改(測試版)
- Renamed
User
toSyncUser
,Credentials
toSyncCredentials
andSession
toSyncSession
to align names with Cocoa. - Removed
SyncManager.setLogLevel()
. UseRealmLog.setLevel()
instead. SyncUser.logout()
now correctly clearsSyncUser.currentUser()
(#3638).- Missing ProGuard configuration for libraries used by Sync extension (#3596).
- Error handler was not called when sync session failed (#3597).
- Added
User.all()
that returns all known Realm Object Server users. - Upgraded Realm Sync to 1.0.0-BETA-3.2
Deprecated
Logger
. UseRealmLogger
instead.AndroidLogger
. The logger for Android is implemented in native code instead.
Bug 修復
- The following were not kept by ProGuard: names of native methods not in the
io.realm.internal
package, names of classes used in method signature (#3596). - Permission error when a database file was located on external storage (#3140).
- Memory leak when unsubscribing from a RealmResults/RealmObject RxJava Observable (#3552).
增強
Realm.compactRealm()
now works for encrypted Realms.- Added
first(E defaultValue)
andlast(E defaultValue)
methods toRealmList
andRealmResult
. These methods will return the provided object instead of throwing anIndexOutOfBoundsException
if the list is empty. - Reduce transformer logger verbosity (#3608).
RealmLog.setLevel(int)
for setting the log level across all loggers.
Internal
- Upgraded Realm Core to 2.1.3
Credits
- Thanks to Max Furman (@maxfurman) for adding support for
first()
andlast()
default values.
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/2856b97f
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!