greenDAO是一个轻量和快速的Android ORM框架

网友投稿 1623 2022-10-27

greenDAO是一个轻量和快速的Android ORM框架

greenDAO是一个轻量和快速的Android ORM框架

greenDAO

greenDAO is a light & fast ORM for Android that maps objects to SQLite databases. Being highly optimized for Android, greenDAO offers great performance and consumes minimal memory.

Home page, documentation, and support links: http://greenrobot.org/greendao/

Features

greenDAO's unique set of features:

Rock solid: greenDAO has been around since 2011 and is used by countless famous appsSuper simple: concise and straight-forward API, in V3 with annotationsSmall: The library is <150K and it's just plain Java jar (no CPU dependent native parts)Fast: Probably the fastest ORM for Android, driven by intelligent code generationSafe and expressive query API: QueryBuilder uses property constants to avoid typosPowerful joins: query across entities and even chain joins for complex relationsFlexible property types: use custom classes or enums to represent data in your entityEncryption: supports SQLCipher encrypted databases

Add greenDAO to your project

greenDAO is available on Maven Central. Please ensure that you are using the latest versions by checking here and here

Add the following Gradle configuration to your Android project:

buildscript { repositories { mavenCentral() } dependencies { classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0' }}apply plugin: 'org.greenrobot.greendao'dependencies { compile 'org.greenrobot:greendao:3.2.0'}

Note that this hooks up the greenDAO Gradle plugin to your build process. When you build your project, it generates classes like DaoMaster, DaoSession and DAOs.

Homepage, Documentation, Links

For more details on greenDAO please check greenDAO's website. Here are some direct links you may find useful:

Features

greenDAO 3

Documentation

Changelog

Technical FAQ

Non-Technical FAQ

More Open Source by greenrobot

EventBus is a central publish/subscribe bus for Android with optional delivery threads, priorities, and sticky events. A great tool to decouple components (e.g. Activities, Fragments, logic components) from each other.

Essentials is a set of utility classes and hash functions for Android & Java projects.

Follow us on Google+ to stay up to date.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:SpringBoot如何在线程中获取@Service Bean类
下一篇:SpannedGridLayoutManager一个布局管理器根据提供的SpanSize调整视图大小和重新排序
相关文章

 发表评论

暂时没有评论,来抢沙发吧~