<p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/0f3ae104c7167272412079964cb5969e.png" /></p> <p>Realm 是一个跨平台的移动数据库引擎,可运行于手机、平板和可穿戴设备之上。于 2014 年 7 月发布,准确来说,它是专门为移动应用所设计的数据持久化解决方案之一。 Realm 可以轻松地移植到您的项目当中,并且绝大部分常用的功能(比如说插入、查询等等)都可以用一行简单的代码轻松完成! Realm 并不是对 Core Data 的简单封装,相反地, Realm 并不是基于 Core Data ,也不是基于 SQLite 所构建的。它拥有自己的数据库存储引擎,可以高效且快速地完成数据库的构建操作。</p> <h2>更新日志</h2> <h3>API重大更改</h3> <ul> <li>Attempting to add an object with no properties to a Realm now throws rather than silently doing nothing.</li> </ul> <h3>功能增强</h3> <ul> <li>Swift: A <code>write</code> block may now <code>throw</code>, reverting any changes already made in the transaction.</li> <li>Reduce address space used when committing write transactions.</li> <li>Significantly reduce the download size of prebuilt binaries and slightly reduce the final size contribution of Realm to applications.</li> <li>Improve performance of accessing RLMArray properties and creating objects with List properties.</li> </ul> <h3>Bug修复</h3> <ul> <li>Fix a crash when reading the shared schema from an observed Swift object.</li> <li>Fix crashes or incorrect results when passing an array of values to <code>createOrUpdate</code> after reordering the class's properties.</li> <li>Ensure that the initial call of a Results notification block is always passed .Initial even if there is a write transaction between when the notification is added and when the first notification is delivered.</li> <li>Fix a crash when deleting all objects in a Realm while fast-enumerating query results from that Realm.</li> <li>Handle EINTR from flock() rather than crashing.</li> <li>Fix incorrect behavior following a call to <code>[RLMRealm compact]</code>.</li> <li>Fix live updating and notifications for Results created from a predicate involving an inverse relationship to be triggered when an object at the other end of the relationship is modified.</li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4958992120585405932" rel="nofollow">80.2 MB<strong>Carthage.framework.zip</strong></a></li> <li><a href="/misc/goto?guid=4958992120700923003" rel="nofollow">148 MB<strong>realm-objc-1.0.2.zip</strong></a></li> <li><a href="/misc/goto?guid=4958992120815392109" rel="nofollow">50.7 MB<strong>realm-swift-1.0.2.zip</strong></a></li> <li><a href="/misc/goto?guid=4958992120937265143" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4958992121048404479" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul>