Android SQLite ORM的框架

Android SQLite ORM 框架

---ORM db 工具类,简化建表、查询、更新、插入、事务、索引的操作

转自:http://zhidao.baidu.com/link?url=yRDuvLnXDj9MW40bhOYJeK7r__YZG0qSJ4t2k9TKgeSRh4FyMIJ9-JjrCspsmcjtzPHGAhl0e5S1qJiPDMSI2A6xSjgqtiWylqPmSzxiXH3

1、greenDAO

项目地址:https://github.com/greenrobot/greenDAO

文档介绍:http://greendao-orm.com/documentation/

官网网址:http://greendao-orm.com/

特点:(1) 性能佳

(2) 简单易用的 API

(3) 内存小好小

(4) 库大小小

2、ActiveAndroid

项目地址:https://github.com/pardom/ActiveAndroid

文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

3、Sprinkles

比较显著的特点就是配合 https://github.com/square/retrofit 能保存从服务器获取的数据

项目地址:https://github.com/emilsjolander/sprinkles

文档介绍:http://emilsjolander.github.io/blog/2013/12/18/android-with-sprinkles/

4、Realm

移动端的数据库,适用于 PhoneTabletWearable,支持 ORM,线程安全、支持连表及数据库加密,比 SQLite 性能更好

项目地址:https://github.com/realm/realm-java

文档介绍:http://realm.io/docs/java/0.72.0/

5、ormlite-android

项目地址:https://github.com/j256/ormlite-android

文档介绍:http://ormlite.com/sqlite_java_android_orm.shtml/

6、Schematic

根据 SQLite 生成 ContentProvider

项目地址:https://github.com/SimonVT/schematic

7、DBFlow

Android SQLite ORM 工具库。综合了 Active Android, Schematic, Ollie,Sprinkles 等库的优点;通过注解实现,性能好;能生成 ContentProvider

项目地址:https://github.com/Raizlabs/DBFlow

文档介绍:https://github.com/Raizlabs/DBFlow#usage-docs

 

都可以试试,都很好,但好的不一定就适合你,有的简单实用,有的功能全面,有的效率更高,看你更注重哪方面了。

你可能感兴趣的:(Android SQLite ORM的框架)