{"id":13434553,"url":"https://github.com/greenrobot/greenDAO","last_synced_at":"2025-03-17T19:30:58.107Z","repository":{"id":41066387,"uuid":"2626751","full_name":"greenrobot/greenDAO","owner":"greenrobot","description":"greenDAO is a light \u0026 fast ORM solution for Android that maps objects to SQLite databases.","archived":false,"fork":false,"pushed_at":"2024-04-30T05:30:59.000Z","size":7353,"stargazers_count":12623,"open_issues_count":235,"forks_count":2888,"subscribers_count":522,"default_branch":"master","last_synced_at":"2025-03-11T07:16:47.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://greenrobot.org/greendao/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greenrobot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-10-22T16:15:14.000Z","updated_at":"2025-03-03T07:57:11.000Z","dependencies_parsed_at":"2024-04-30T06:58:16.511Z","dependency_job_id":"ecb405b7-8297-431c-9b1b-cffaa6d94f92","html_url":"https://github.com/greenrobot/greenDAO","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenrobot%2FgreenDAO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenrobot%2FgreenDAO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenrobot%2FgreenDAO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenrobot%2FgreenDAO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenrobot","download_url":"https://codeload.github.com/greenrobot/greenDAO/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244096708,"owners_count":20397467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:00:17.199Z","updated_at":"2025-03-17T19:30:56.997Z","avatar_url":"https://github.com/greenrobot.png","language":"Java","readme":"⚠️ **This project is not longer actively maintained.** If you are looking for an easy to use and efficient database solution,\nplease:\n\nCheck out ObjectBox\n===================\n\n\u003ca href=\"https://objectbox.io/\"\u003e\u003cimg width=\"466\" src=\"https://github.com/greenrobot/greenDAO/raw/master/images/objectbox-logo.png\"\u003e\u003c/a\u003e\n\n**Check out our new mobile database [ObjectBox](https://objectbox.io/) ([GitHub repo](https://github.com/objectbox/objectbox-java)).**\n\nObjectBox is a superfast object-oriented database with strong relation support. ObjectBox is embedded into your Android, Linux, macOS, or Windows app. \n\ngreenDAO\n========\ngreenDAO is a light \u0026 fast ORM for Android that maps objects to SQLite databases. Being highly optimized for Android, greenDAO offers great performance and consumes minimal memory.\n\n**\u003cfont size=\"+1\"\u003eHome page, documentation, and support links: https://greenrobot.org/greendao/\u003c/font\u003e**\n\n[![Build Status](https://travis-ci.org/greenrobot/greenDAO.svg?branch=master)](https://travis-ci.org/greenrobot/greenDAO)\n[![Follow greenrobot on Twitter](https://img.shields.io/twitter/follow/greenrobot_de.svg?style=flat-square\u0026logo=twitter)](https://twitter.com/greenrobot_de)\n\nFeatures\n--------\ngreenDAO's unique set of features:\n\n* Rock solid: greenDAO has been around since 2011 and is used by countless famous apps\n* Super simple: concise and straight-forward API, in V3 with annotations\n* Small: The library is \u003c150K and it's just plain Java jar (no CPU dependent native parts)\n* Fast: Probably the fastest ORM for Android, driven by intelligent code generation\n* Safe and expressive query API: QueryBuilder uses property constants to avoid typos\n* Powerful joins: query across entities and even chain joins for complex relations\n* Flexible property types: use custom classes or enums to represent data in your entity\n* Encryption: supports SQLCipher encrypted databases\n\nAdd greenDAO to your project\n----------------------------\ngreenDAO is available on Maven Central. Please ensure that you are using the latest versions of the [greendao](https://search.maven.org/search?q=g:org.greenrobot%20AND%20a:greendao) and [greendao-gradle-plugin](https://search.maven.org/search?q=g:org.greenrobot%20AND%20a:greendao-gradle-plugin) artifact.\n\nAdd the following Gradle configuration to your Android project. In your root `build.gradle` file:\n```groovy\nbuildscript {\n    repositories {\n        jcenter()\n        mavenCentral() // add repository\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:\u003cagp-version\u003e'\n        classpath 'org.greenrobot:greendao-gradle-plugin:3.3.1' // add plugin\n    }\n}\n```\nIn your app modules `app/build.gradle` file:\n```groovy\napply plugin: 'com.android.application'\napply plugin: 'org.greenrobot.greendao' // apply plugin\n \ndependencies {\n    implementation 'org.greenrobot:greendao:3.3.0' // add library\n}\n```\n\nNote 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.\n\nContinue at the [Getting Started](https://greenrobot.org/greendao/documentation/how-to-get-started/) page.\n\nR8, ProGuard\n------------\n\nIf your project uses R8 or ProGuard add the following rules:\n\n```bash\n-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {\npublic static java.lang.String TABLENAME;\n}\n-keep class **$Properties { *; }\n\n# If you DO use SQLCipher:\n-keep class org.greenrobot.greendao.database.SqlCipherEncryptedHelper { *; }\n\n# If you do NOT use SQLCipher:\n-dontwarn net.sqlcipher.database.**\n# If you do NOT use RxJava:\n-dontwarn rx.**\n```\n\nHomepage, Documentation, Links\n------------------------------\nFor more details on greenDAO please check [greenDAO's website](https://greenrobot.org/greendao). Here are some direct links you may find useful:\n\n[Features](https://greenrobot.org/greendao/features/)\n\n[Getting Started](https://greenrobot.org/greendao/documentation/how-to-get-started/)\n\n[Documentation](https://greenrobot.org/greendao/documentation/)\n\n[Changelog](https://greenrobot.org/greendao/changelog/)\n\n[Technical FAQ](https://greenrobot.org/greendao/documentation/technical-faq/)\n\n[Non-Technical FAQ](https://greenrobot.org/greendao/documentation/faq/)\n\n[Migrating to greenDAO 3](https://greenrobot.org/greendao/documentation/updating-to-greendao-3-and-annotations/)\n\nMore Open Source by greenrobot\n==============================\n[__ObjectBox__](https://github.com/objectbox/objectbox-java) is a new superfast object-oriented database for mobile.\n\n[__EventBus__](https://github.com/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.\n\n[__Essentials__](https://github.com/greenrobot/essentials) is a set of utility classes and hash functions for Android \u0026 Java projects.\n","funding_links":[],"categories":[".NET Core","Index","Libraries","Java","Libs","数据库开发","etc","Uncategorized"],"sub_categories":["EF Core","O/R Mapping","ORM","\u003cA NAME=\"Orm\"\u003e\u003c/A\u003eOrm","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenrobot%2FgreenDAO","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenrobot%2FgreenDAO","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenrobot%2FgreenDAO/lists"}