{"id":37027568,"url":"https://github.com/koombea/couchbase-lite-wrapper-android","last_synced_at":"2026-01-14T03:16:46.651Z","repository":{"id":57733861,"uuid":"385760007","full_name":"koombea/couchbase-lite-wrapper-android","owner":"koombea","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-16T19:42:54.000Z","size":264,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-09-16T22:02:27.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/koombea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-13T23:31:22.000Z","updated_at":"2025-09-16T19:27:33.000Z","dependencies_parsed_at":"2025-09-16T21:14:44.734Z","dependency_job_id":"3a2a4c90-41b1-41a7-b531-cd8094f0c78f","html_url":"https://github.com/koombea/couchbase-lite-wrapper-android","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/koombea/couchbase-lite-wrapper-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koombea","download_url":"https://codeload.github.com/koombea/couchbase-lite-wrapper-android/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T03:16:46.143Z","updated_at":"2026-01-14T03:16:46.642Z","avatar_url":"https://github.com/koombea.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# couchbase-wrapper-android\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n**Couchbase Lite Wrapper** is a library written in Kotlin that makes it easy for you to implement database CRUD operations with [Couchbase Lite for Android](https://github.com/couchbase/couchbase-lite-android)\n\n## Requirements\n- Api 22+\n\n## Installation\n\nMake sure you have the Maven Central repository in root build.gradle:\n```groovy\ndependencyResolutionManagement {\n\trepositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n\trepositories {\n\t\tmavenCentral()\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\nThen add the dependency with:\n```groovy\ndependencies {\n\timplementation 'com.github.koombea:couchbase-lite-wrapper-android:2.0.4'\n}\n```\n\n## The Basics\n\n### Setup\n\nCreate a couchbase database for each of the collection you want to store\n\n```kotlin\nval couchbaseDatabase = CouchbaseDatabase(context = context, databaseName = \"User\")\n\n```\n\nCreate a couchBaseCollection in order to store documents on it\n\n```kotlin\nval couchbaseDatabase = CouchbaseDatabase(context = context, databaseName = \"User\")\nval couchBaseCollection = couchbaseDatabase.createCollection(\"user\") \n```\n\n### Create / Update document\n\n```kotlin \nval user = User(name = \"Brad\", lastname = \"Depp\")\nval document = CouchbaseDocument(id = \"1\", attributes = user)\ncouchBaseCollection.save(document)\n\n```\n\n### Fetch documents\n\n```kotlin\nval expression = Expression.property(\"attributes.name\").equalTo(Expression.string(\"Brad\"))\nval documents = couchBaseCollection.fetchAll\u003cUser\u003e(whereExpression = expression)\n\n```\n\n### Delete Documents\n\n```kotlin\nval expression = Expression.property(\"attributes.name\").equalTo(Expression.string(\"Brad\"))\ncouchBaseCollection.deleteAll(whereExpression = expression)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoombea%2Fcouchbase-lite-wrapper-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoombea%2Fcouchbase-lite-wrapper-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoombea%2Fcouchbase-lite-wrapper-android/lists"}