移動數據庫引擎Realm?v2.0.4 發布

jopen 8年前發布 | 5K 次閱讀 Realm 數據庫 移動數據庫

 

Realm 是一個跨平臺的移動數據庫引擎,可運行于手機、平板和可穿戴設備之上。于 2014 年 7 月發布,準確來說,它是專門為移動應用所設計的數據持久化解決方案之一。 Realm 可以輕松地移植到您的項目當中,并且絕大部分常用的功能(比如說插入、查詢等等)都可以用一行簡單的代碼輕松完成! Realm 并不是對 Core Data 的簡單封裝,相反地, Realm 并不是基于 Core Data ,也不是基于 SQLite 所構建的。它擁有自己的數據庫存儲引擎,可以高效且快速地完成數據庫的構建操作。

 

更新日志

  • Remove RLMAuthenticationActions and replace +[RLMSyncCredential credentialWithUsername:password:actions:] with +[RLMSyncCredential credentialsWithUsername:password:register:].
  • Rename +[RLMSyncUser authenticateWithCredential:] to +[RLMSyncUser logInWithCredentials:].
  • Rename "credential"-related types and methods to RLMSyncCredentials/SyncCredentials and consistently refer to credentials in the plural form.
  • Change +[RLMSyncUser all] to return a dictionary of identifiers to users and rename to:
    • +[RLMSyncUser allUsers] in Objective-C.
    • SyncUser.allUsers() in Swift 2.
    • SyncUser.all in Swift 3.
  • Rename SyncManager.sharedManager() to SyncManager.shared in Swift 3.
  • Change Realm.Configuration.syncConfiguration to take a SyncConfiguration struct rather than a named tuple.
  • +[RLMSyncUser logInWithCredentials:] now invokes its callback block on a background queue.

增強

  • Add +[RLMSyncUser currentUser].
  • Add the ability to change read, write and management permissions for synchronized Realms using the management Realm obtained via the -[RLMSyncUser managementRealmWithError:] API and theRLMSyncPermissionChange class.

 

下載

本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/1ad56d85

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!