| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
10年前发布

代替SQLite的手机数据库:Realm

logo.png
Realm是一个能够代替SQLite和Core Data的手机数据库。使用 C++ 内核,所以效率非常的高,是 sqlite 的近几倍。

特性:

  • Mobile-first: Realm is the first database built from the ground up to run directly inside phones, tablets and wearables.
  • Simple: Data is directly exposed as objects and queryable by code, removing the need for ORM's riddled with performance & maintenance issues. Plus, we've worked hard to keep our API down to very few classes: most of our users pick it up intuitively, getting simple apps up & running in minutes.
  • Modern: Realm supports easy thread-safety, relationships & encryption.
  • Fast: Realm is faster than even raw SQLite on common operations, while maintaining an extremely rich feature set.

Realm 中文文档:http://djyde.github.io/2014/10/17/realm-doc-in-chinese.html

Realm realm = Realm.getInstance(this);    // All writes are wrapped in a transaction  // to facilitate safe multi threading  realm.beginTransaction();    // Add a person  Person person = realm.createObject(Person.class);  person.setName("Young Person");  person.setAge(14);    realm.commitTransaction();    RealmResults<User> result = realm.where(User.class)                                   .greaterThan("age", 10)  // implicit AND                                   .beginGroup()                                        .equalTo("name", "Peter")                                        .or()                                        .contains("name", "Jo")                                   .endGroup()                                   .findAll();

项目主页:http://www.open-open.com/lib/view/home/1413557451497

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1413557451497.html
Realm 数据库服务器