{"id":13540134,"url":"https://github.com/florent37/android-nosql","last_synced_at":"2025-09-30T02:30:28.003Z","repository":{"id":91120098,"uuid":"92810954","full_name":"florent37/Android-NoSql","owner":"florent37","description":"Lightweight, simple structured NoSQL database for Android","archived":true,"fork":false,"pushed_at":"2020-07-02T11:47:20.000Z","size":173,"stargazers_count":287,"open_issues_count":3,"forks_count":40,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-01-19T19:40:02.242Z","etag":null,"topics":["android","cassandra","cassandra-database","data","db","elastic","firebase","hadoop","local","mongo","mongodb","nosql","path","preferences","saver","shared","simple","sql","uri"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florent37.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-30T08:04:42.000Z","updated_at":"2025-01-06T16:13:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"19b4e517-d5db-4381-9670-c927cc492d9e","html_url":"https://github.com/florent37/Android-NoSql","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/florent37/Android-NoSql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FAndroid-NoSql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FAndroid-NoSql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FAndroid-NoSql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FAndroid-NoSql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florent37","download_url":"https://codeload.github.com/florent37/Android-NoSql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FAndroid-NoSql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277618562,"owners_count":25848557,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","cassandra","cassandra-database","data","db","elastic","firebase","hadoop","local","mongo","mongodb","nosql","path","preferences","saver","shared","simple","sql","uri"],"created_at":"2024-08-01T09:01:41.117Z","updated_at":"2025-09-30T02:30:27.718Z","avatar_url":"https://github.com/florent37.png","language":"Java","readme":"# Android-NoSql\n\nLightweight, simple structured NoSQL database for Android\n\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\n# Download\n\n\u003ca href='https://ko-fi.com/A160LCC' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n[ ![Download](https://api.bintray.com/packages/florent37/maven/android-nosql/images/download.svg) ](https://bintray.com/florent37/maven/android-nosql/_latestVersion)\n```java\ndependencies {\n    implementation 'com.github.florent37:android-nosql:1.0.0'\n}\n```\n\nSave your datas as a structured tree\n\n```java\nnoSql.put(\"/users/\", \"florent\")\nnoSql.put(\"/users/\", \"kevin\")\nnosql.put(\"/identifiers/florent\", 10)\nnosql.put(\"/identifiers/kevin\", 12)\n```\n\nThe data structure will be\n\n```java\n/\n---users/\n      ---\"florent\"\n      ---\"kevin\"\n---identifiers/\n      ---florent/\n             ---10\n      ---kevin/\n             ---12\n```\n\nIt'll be simple to search data\n\n```java\nint myId = noSql.get(\"/identifiers/florent/\").integer();\n```\n\n# Serialize objects \n\nYou can simply add nodes from POJOS\n\n```java\nfinal User user = new User(\n                \"flo\",\n                new House(\"paris\"),\n                Arrays.asList(new Car(\"chevrolet camaro\"), new Car(\"ford gt\"))\n        );\n\nnoSql.put(\"/user/florent/\", user);\n```\n\n```java\n/\n ---users/\n       ---florent/\n               ---name/\n                    ---\"flo\"\n               ---house/\n                    ---adress/\n                           ---\"paris\"\n               ---cars/\n                    ---0/\n                      ---model/\n                            ---\"chevrolet camaro\"\n                    ---1/\n                      ---model/\n                            ---\"ford gt\"\n```\n\n# Get Objects from node\n \nOr fetch nodes directly into Java Objects\n \n```java\nUser user = noSql.get(\"/user/florent/\", User.class);\n```\n\n# Navigate\n\n```java\nnoSql.node(\"/identifiers/\")\n     .child(\"florent\")\n     .childNodes()\n     .get(1)\n     .put(\"country\", \"france\");\n```\n\n# Listeners\n\nYou can listen for nodes updates\n\n```java\nnoSql.notify(\"/user/\", new Listener() {\n            @Override\n            public void nodeChanged(String path, NoSql.Value value) {\n                //notified when :\n                // - the node is created\n                // - the node is deleted\n                // - a subnode is added / updated\n             }\n        });\n```\n\n# Init\n\nAndroid-NoSql need to be initialized to store your objects\n\n```java\npublic class MainApplication extends Application {\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n\n        AndroidNoSql.initWithDefault(context);\n    }\n}\n```\n\nYou can also define the datasavers using initWith, it means you can store your data into SqlDatabase, or any storage library your want ;)\n\n# Credits   \n\nAuthor: Florent Champigny \n\nBlog : [http://www.tutos-android-france.com/](http://www.www.tutos-android-france.com/)\n\nFiches Plateau Moto : [https://www.fiches-plateau-moto.fr/](https://www.fiches-plateau-moto.fr/)\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://plus.google.com/+florentchampigny\"\u003e\n  \u003cimg alt=\"Follow me on Google+\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/gplus.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/florent_champ\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/twitter.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/in/florentchampigny\"\u003e\n  \u003cimg alt=\"Follow me on LinkedIn\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/linkedin.png\" /\u003e\n\u003c/a\u003e\n\n\nLicense\n--------\n\n    Copyright 2017 Florent37, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":["https://ko-fi.com/A160LCC'"],"categories":["\u003ca id=\"969212c047f97652ceb9c789e4d8dae5\"\u003e\u003c/a\u003e数据库\u0026\u0026SQL攻击\u0026\u0026SQL注入"],"sub_categories":["\u003ca id=\"ca6f4bd198f3712db7f24383e8544dfd\"\u003e\u003c/a\u003eNoSQL"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2Fandroid-nosql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorent37%2Fandroid-nosql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2Fandroid-nosql/lists"}