以下内容為原創,歡迎轉載,轉載請注明
來自天天部落格:http://www.cnblogs.com/tiantianbyconan/p/6020412.html
[Android]Android端ORM架構——RapidORM(v2.1)
RapidORM:Android端輕量高性能的ORM架構
GitHub: https://github.com/wangjiegulu/RapidORM
RapidORM v2.1 feature
- 在執行SQL和建立表時提升性能。
- 提升bind參數時的性能
- Index支援。
- 上傳至Maven中心庫。
關于 RapidORM
- 主鍵支援任何類型,支援聯合主鍵。
- 非反射執行SQL。
- 高性能。
- 相容
、android.database.sqlite.SQLiteDatabase
以及更多加密實作。net.sqlcipher.database.SQLiteDatabase
- 友好的面向對象接口調用。
- 聯表查詢未支援。
v2.0
blog: http://www.cnblogs.com/tiantianbyconan/p/5626716.html
v1.0
blog: http://www.cnblogs.com/tiantianbyconan/p/4748077.html
怎麼使用
1. build.gradle
添加依賴
build.gradle
Gadle(擷取最新版本)
compile "com.github.wangjiegulu:rapidorm:x.x.x"
compile "com.github.wangjiegulu:rapidorm-api:x.x.x"
apt "com.github.wangjiegulu:rapidorm-compiler:x.x.x"
Maven(擷取最新版本)
<dependency>
<groupId>com.github.wangjiegulu</groupId>
<artifactId>rapidorm</artifactId>
<version>x.x.x</version>
</dependency>
具體使用方式見:
v2.0
v1.0