移动数据库引擎Realm Java v2.1.0 发布

jopen 7年前
   <p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/0f3ae104c7167272412079964cb5969e.png" /></strong></p>    <p>Realm 是一个跨平台的移动数据库引擎,可运行于手机、平板和可穿戴设备之上。于 2014 年 7 月发布,准确来说,它是专门为移动应用所设计的数据持久化解决方案之一。 Realm 可以轻松地移植到您的项目当中,并且绝大部分常用的功能(比如说插入、查询等等)都可以用一行简单的代码轻松完成! Realm 并不是对 Core Data 的简单封装,相反地, Realm 并不是基于 Core Data ,也不是基于 SQLite 所构建的。它拥有自己的数据库存储引擎,可以高效且快速地完成数据库的构建操作。</p>    <p> </p>    <h2>更新日志</h2>    <h3>对象服务器API更改(测试版)</h3>    <ul>     <li>Renamed <code>User</code> to <code>SyncUser</code>, <code>Credentials</code> to <code>SyncCredentials</code> and <code>Session</code> to <code>SyncSession</code> to align names with Cocoa.</li>     <li>Removed <code>SyncManager.setLogLevel()</code>. Use <code>RealmLog.setLevel()</code> instead.</li>     <li><code>SyncUser.logout()</code> now correctly clears <code>SyncUser.currentUser()</code> (#3638).</li>     <li>Missing ProGuard configuration for libraries used by Sync extension (#3596).</li>     <li>Error handler was not called when sync session failed (#3597).</li>     <li>Added <code>User.all()</code> that returns all known Realm Object Server users.</li>     <li>Upgraded Realm Sync to 1.0.0-BETA-3.2</li>    </ul>    <h3>Deprecated</h3>    <ul>     <li><code>Logger</code>. Use <code>RealmLogger</code> instead.</li>     <li><code>AndroidLogger</code>. The logger for Android is implemented in native code instead.</li>    </ul>    <h3>Bug 修复</h3>    <ul>     <li>The following were not kept by ProGuard: names of native methods not in the <code>io.realm.internal</code> package, names of classes used in method signature (#3596).</li>     <li>Permission error when a database file was located on external storage (#3140).</li>     <li>Memory leak when unsubscribing from a RealmResults/RealmObject RxJava Observable (#3552).</li>    </ul>    <h3>增强</h3>    <ul>     <li><code>Realm.compactRealm()</code> now works for encrypted Realms.</li>     <li>Added <code>first(E defaultValue)</code> and <code>last(E defaultValue)</code> methods to <code>RealmList</code> and <code>RealmResult</code>. These methods will return the provided object instead of throwing an <code>IndexOutOfBoundsException</code> if the list is empty.</li>     <li>Reduce transformer logger verbosity (#3608).</li>     <li><code>RealmLog.setLevel(int)</code> for setting the log level across all loggers.</li>    </ul>    <h3>Internal</h3>    <ul>     <li>Upgraded Realm Core to 2.1.3</li>    </ul>    <h3>Credits</h3>    <ul>     <li>Thanks to Max Furman (@maxfurman) for adding support for <code>first()</code> and <code>last()</code> default values.</li>    </ul>    <p> </p>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958994619497878518" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958994619595030180" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p> </p>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/2856b97f">http://www.open-open.com/news/view/2856b97f</a></p>    <h2> </h2>